The Peshwa was the appointed Prime Minister of the Maratha Empire of the Indian subcontinent. With time, the Peshwas became the real rulers of the empire while the successors of Shivaji were just nominal heads of the state. The office of Peshwas became hereditary.