The region around the city has been a centre of art and power for two thousand years. Buddhist monks carved the Ajanta caves from about the 2nd century BCE, with a great second phase in the 5th century CE under the Vakataka kings. At Ellora, Buddhist, Hindu and Jain caves were cut side by side between about the 6th and 10th centuries; the Kailasa temple, carved out of a single rock under the Rashtrakuta kings in the 8th century, is one of the wonders of Indian architecture.
The Yadava kings ruled from Devagiri, later renamed Daulatabad, until the Delhi Sultanate took it; in 1327 Sultan Muhammad bin Tughlaq famously tried to move his capital there from Delhi. The city itself was founded in 1610 by Malik Ambar, minister of the Ahmadnagar sultanate, as Khadki, and later named Aurangabad by the Mughal prince and emperor Aurangzeb, who governed the Deccan from here. It later came under the Nizams of Hyderabad and joined Maharashtra after Independence.
In 2023 the city was officially renamed Chhatrapati Sambhajinagar, after Shivaji's son, the Maratha king Sambhaji; "Aurangabad" is still widely used.