The Maratha Empire or the Maratha Confederacy was a power that dominated large portion of Indian subcontinent in the 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.