The Karkota dynasty ruled Kashmir for over 250 years beginning in the 7th century CE. They were a line of capable kings, with the most illustrious being Lalitaditya Muktapida who conquered much of northern and central India as well as parts of Central Asia, establishing a short-lived empire. Under the Karkotas, Kashmir enjoyed political power and prosperity as a center of learning, culture, and temple building. Their rule ended in the 9th century CE when the last Karkota king was deposed by his minister.