The Mughal Empire in India lasted for about 304 years (1526-1857, Here are some contenders for the title of "Greatest Rulers in India", who ruled for longer than the Mughals.
1
Ashoka's reign lasted 36 years, marking a period of peace, prosperity, and the spread of Buddhism across Asia.
2
The founder of the Maurya Empire, Chandragupta's reign lasted 24 years. He united much of the Indian subcontinent.
3
Samudragupta's reign is estimated to be around 40 years. He is known as a great military leader and patron of the arts.
4
Ruling for 29 years, Rajraja Chola is considered one of the greatest emperors of South India.
5
Krishnadevaraya's reign of 20 years was a golden age for the Vijayanagara Empire. He was a patron of the arts and literature.
6
Harshavardhana's reign lasted 41 years. He reunited parts of North India and is known for his patronage of Buddhism and scholarship.