Indexes are used to improve the performance of queries by creating a quick reference to the data that is being searched.