The Maratha Empire or the Maratha Confederacy was an Indian power that dominated much of the Indian subcontinent in the 17th and 18th century. The empire formally existed from 1674 with the coronation of Chhatrapati Shivaji and ended in 1818 with the defeat of Peshwa Bajirao II. The Marathas are credited to a large extent for ending Mughal rule in India.