Mataram Sultanate
A civil war in the Mataram Sultanate broke out between Pakubuwono II (1745–1749), the last ruler of Kartasura, and his younger brother and heir apparent to the throne, Prince Mangkubumi (later known as Hamengkubuwono I, the first Sultan of Yogyakarta, and the founder of the current ruling royal house). Pakubuwono II had agreed to cooperate with the Dutch East India Company, and ceded some Mataram territory to the Dutch. His younger brother, Prince Mangkubumi, stood against the agreement, citing concerns that the people would become slaves under Dutch rule. During the war, Prince Mangkubumi defeated Pakubuwono II's forces and declared sovereignty in the Sultanate of Yogyakarta, occupying the southern parts of the former Mataram Sultanate.