The VOC (Dutch East India Company) exploited the power struggle to increase its control on Java, and manage to gain concessions of Mataram's former colony in Priangan and Semarang.
With the help of Adipati Cakraningrat IV the ruler of western Madura, Pakubuwono II regained the capital and cracked down on the rebellion.
The transfer of the capital to Sala village is commemorated in chandrasengkala (chronogram) "Kombuling Pudya Kapyarsihing Nata" which corresponds to Wednesday 12 Sura 1670 Javanese year (20 February 1745).
During the era of Dutch rule, there were recognised two main principalities of Vorstenlanden Mataram, the Surakarta Sunanate and The Yogyakarta Sultanate.
Susuhunan Pakubuwono VI was alleged to have secretly supported Diponegoro's rebellion, and as punishment after the Java War the Sunanate was obliged to surrender much of its lands to the Dutch.
Throughout the Dutch East Indies era, the Sunanate of Surakarta enjoyed autonomous status under the Vorstenlanden Mataram arrangements.
Together with the Sultanate of Yogyakarta, the Sunanate of Surakarta was considered as a vassal state of the Dutch Empire under royal patronage of Netherlands crown.
The kingdom faced an era of strife and uncertainty during World War II and the Japanese occupation of the Dutch East Indies.