Events that trigger the establishment of this city is the flare up of rebellion Sunan Kuning ( " tantrum Pacinan " ) during the reign of Sunan Pakubuwono II , king of Kartasura kingdom 1742. Rebellion can be crushed with the help of VOC and can be retaken, but with the expense of the loss of some heritage Mataram areas in return for the help were given by VOC. The building of the palace was destroyed and is considered " tainted " . Sunan Pakubuwana II ordered Tumenggung Honggowongso ( nick name Joko Sangrib or Kentol Surawijaya), later is given the title Tumenggung Arungbinang I and Tumenggung Mangkuyudo as well as commander of the Dutch forces, JAB Hohendorff van , to locate the capital / new palace. For that the new palace were built 20 km to the southeast of Kartasura, in 1745, precisely in the village of Sala at the edge of the Bengawan Solo River. The name " Surakarta " is given as the name of " graduation " to the center of the new government. (The notes refer to the form of the old " Salakarta "). Construction of the palace, according to records. Using teak from Kethu Alas region , forest near Wonogiri City and the wood swept away by Bengawan Solo River. Officially , the palace began to be occupied dated February 17, 1745 ( Wednesday Pahing Sura 14,1670 Javanese calendar , Wuku Landep , Windu Sancaya ) .
Applicability Giyanti Agreement ( February 13th, 1755 ) led to Surakarta became the center of Kasunanan government , with its king Pakubuwono III. Yogyakarta became the center of Kasultanan government, with its king Mangkubumi ( Sultan Hamengkubuwono ( HB ) I). Yogyakarta palace and city was built in 1755, with the same pattern of urban planning with the Surakarta that was built first.
Treaty of Salatiga in 1757 expanded the territory of the city , given the region north of the palace to the Prince Sambernyawa ( Mangkunagara I) . Since then , Sala is a city with two administrative systems , which is valid until 1945, during the War of Independence of the Republic of Indonesia ( RI ).