The Maratha Empire or the Maratha Confederacy was an Indian power that existed from 1674 to 1818. At its peak, the empire covered a territory of over 2.8 million km². The Marathas are credited to a large extent for ending the Mughal rule in India.

The Marathas are the Hindu warrior group from the western Deccan Plateau (present day Maharashtra) that rose to prominence by establishing a Hindavi Swarajya. The Marathas became prominent in the 17th century under the leadership of Shivaji who revolted against the Adil Shahi dynasty and the Mughal Empire and carved out a rebel territory with Raigad as his capital. The Marathas had learned Mughal military skills from Shivaji's father who acquired this knowledge and skills through his time serving as a mandsabdar under Mughal Emperor, Shah Jahan. Known for their mobility, the Marathas were able to consolidate their territory during the Mughal–Maratha Wars and later controlled a large part of India.

Chhattrapati Shahu, a grandson of Shivaji, was released by the Mughals after the death of Emperor Aurangzeb. Following a brief struggle with his aunt Tarabai, Shahu became ruler. During this period, he appointed a Chitpavan Brahmin,  Balaji Vishwanath, and later, his descendants, as the peshwas or prime ministers of the empire. Balaji and his descendants played a stellar role in expansion of maratha rule.

In 1761, the Maratha army lost the Third Battle of Panipat to Ahmad Shah Durrani of the Afghan Durrani Empire which halted their imperial expansion in northwestern India. Ten years after Panipat, the young peshwa Madhavrao I's Maratha Resurrection reinstated Maratha authority over North India.

In a bid to effectively manage the large empire, he gave semi-autonomy to the strongest of the knights, which created a confederacy of Maratha states. They became known as the Gaekwads of Baroda, the Holkars of Indore and Malwa, the Scindiasof Gwalior and Ujjain, the Bhonsales of the Nagpur and the Puars of Dhar & Dewas. In 1775, the East India Company intervened in a Peshwa family succession struggle in Pune, which became the First Anglo-Maratha War. The Marathas remained the preeminent power in India until their defeat in the Second and Third Anglo-Maratha Wars (1805–1818), which left the East India Company in control of most of India.

A large portion of the Maratha empire was coastline, which had been secured by a potent navy under commanders such as Kanhoji Angre. He was very successful at keeping foreign naval ships, particularly of the Portuguese and British, at bay. Securing the coastal areas and building land-based fortifications were crucial aspects of the Maratha's defensive strategy and regional military history.