The Mughal rule was founded by Babur in 1526. Six great rulers from Babur to Aurangzeb expanded and consolidated their rule 1526 to 1707. During this period they excelled in literature, music, painting and architecture, building several monuments like the Taj Mahal in Agra. After the death of Aurangzeb in 1707, there were corrupt and inefficient rulers who failed to run the affairs of a huge empire. The Mughal rule was replaced by the British in 1858.