Agrarian unrest eventually sparked the Herzegovinian rebellion, a widespread peasant uprising, in 1875. The conflict rapidly spread and came to involve several Balkan states and Great Powers, a situation that led to the Congress of Berlin and the Treaty of Berlin in 1878.