Original sentence: Marathas were one of the major causes for the decline of the Mughal Empire in the early eighteenth century.The Marathas became prominent in the seventeenth century under the leadership of Shivaji, who revolted against the Adil Shahi dynasty and the Mughals to carve out a kingdom with Raigad as his capital.The religious attitude of Mughal Emperor Aurangzeb estranged non-Muslims, and his inability to suppress the resulting Maratha insurgency after a 27-year war came at a great cost for his men and treasury and eventually ensured Maratha ascendency and their control over sizeable portions of former Mughal dominions in the north of the Indian subcontinent
Edited sentence: The Marathas became prominent in the 17th century under the leadership of Shivaji, who revolted against the Adil Shahi dynasty and the Mughals to carve out a kingdom with Raigad as his capital.The religious attitude of Mughal Emperor Aurangzeb estranged non-Muslims, and his inability to suppress the resulting Maratha uprising after a 27-year war at a great cost to his men and treasury, eventually ensured Maratha ascendency and their control over sizeable portions of former Mughal lands in the north of the Indian subcontinent.They are largely credited for ending Mughal control over the Indian subcontinent and establishing the Maratha Empire