 During the 17th century, the Marathas under Chatrapati Shivaji Maharaj laid the foundation for an independent kingdom.The Peshwas, who ruled the expanded Maratha empire, established their headquarters in the small town of Pune and developed it into a large city.The city and district became part of the British Raj in the 19th century.