Within the Russian Empire
In 1752, during the reign of Elizabeth Petrovna, the Senate, in order to strengthen the southern borders of the Russian Empire, recognized the need to urgently begin construction of a new Ishim line. By a decree of the Senate of February 25, 1752, General Kinderman was ordered to build a line of fortifications from the Omsk fortress on the Irtysh to the Beast's Head tract on Tobol.
In June 1752, an expedition consisting of Dragoons of the Lutsk regiment, foot soldiers of the Noteburg regiment and a battalion of the Vologda Dragoon regiment, almost 2 thousand people, moved to the tract on the Ishim river. A small forest, nestled up against the floodplain of lake Babalawo Dragoons crossed to the right Bank of the Ishim river. Two steep ravines that bounded the construction site, went to the Ishim and together with the steep Bank of a wide (up to 47 m) river created a natural barrier to the enemy. The expedition had to build a large fortification in a short time — the fortress of St. Petersburg. Peter and two small-fortress Noon and Swan, and between them 8 redoubts. Given the imminent onset of cold weather, we decided to build wooden fortifications.
The fortress on Ishim had the shape of a regular hexagon with an area of about 2 hectares. At the corners of its equal distance located the bastions connected by curtain walls. The bastions facing the river were called Nagorny and Ishim. The total length of the fortress fence was more than 1.3 km. In the bastions were placed guns, inside the fortress-barracks, stables, officers ' houses, garrison Church, powder magazine, and other premises. Hard work exhausted the soldiers and Cossacks, as well as poor nutrition and early cold weather. People got sick, many died, and escapes became more frequent.
In early October, snow fell and work was stopped. In addition to the officers, 50 dragoons and 40 soldiers remained in the fortress. In severe winter conditions, a small garrison provided constant surveillance of the steppe, watching for signs of distress from nearby redoubts. The fortress was connected with Russia by a chain of post stations. In the spring of 1753, construction resumed.
The area of the fortress was soon built up to the limit, and some rooms were built outside the walls of the fortress. So, later formed the Upper forstadt-on the mountain, and in the Foothills-the Lower forstadt. Forstadt is a settlement where the main role is played by the fortress and the military. In the Lower forstadt there is a Cossack village, a hospital, and a locksmith's shop. For security reasons, the suburb was surrounded by a fence. The entrance and exit were guarded by special guards.
As well as other fortified points in Siberia, the fortress of St. Peter was strengthened militarily: the garrison was increased, wooden walls and bastions were replaced with earthen ones. The barracks were rebuilt, and a "salt house" was built to receive representatives of Kokand. According to the instructions of the Senate, kolodniki exiled to Siberia for hard labor (up to 100–300) were used for the work. In 1772, the fortress had two suburbs: the upland part and the foothills. The merchant class grew, as the fortress became a major political and economic center of the priishimye region.
Thanks to Abylai Khan, the fortress became a major point of exchange and transit trade, which influenced the economic development of the steppe. Trade routes from Russia and Central Asia converged here.
Local Kazakhs borrowed mowing, tilling, fishing, veterinary medicine skills from immigrants.
In 1782, in the fortress of St. Peter, in the presence of the Governor-General of the Ufa and Simbirsk governorates, I. V. Yakobi, the Sultan of the Middle Zhuz, Vali Khan, took the solemn oath of allegiance to the Russian government. He was officially confirmed as a Khan by the Russian Empire.
In 1807, the fortress was renamed into the city of Petropavlovsk with the addition of Tobolsk province. On September 7, the first mayor of the fortress was appointed, Peter Levashov (a retired major with a salary of 300 rubles).
By a nominal decree of January 22, 1822 "on the division of the Siberian provinces into Western and Eastern administrations", Siberia was divided into Western (center — Tobolsk) and Eastern (center — Irkutsk). Petropavlovsk was classified as a medium-sized city and became a district city of the newly formed Omsk region, assigned to the Western main administration.
In 1824, the Petropavlovsk district of the Omsk region was formed with the administrative center in Petropavlovsk, where offices were opened. In 1825, the city government was organized. In the same year, the first city budget was drawn up and the first city head was appointed, which was the merchant F. Zenkov.
On April 16, 1838, Petropavlovsk was made a minor city of Ishimsky uyezd of Tobolsk province, since the Omsk region was abolished.
On November 4, 1868, when the Akmola region was formed (it existed from 1868–1919), with its center in Omsk, Petropavlovsk became a district city in this region.
During the war with Napoleon, citizens and peasants twice sent recruits and voluntarily donated about 30 thousand rubles to the defense of the Fatherland.
On May 11, 1849, a fire broke out, destroying 450 houses. After that, the new construction began according to the plan approved by the Tsar. The author of the plan was the architect Chernenko, who did not take into account the features of the soil and terrain, and the foothills sank in spring floods more than once. The relocation of peasants from European Russia and the construction of the Siberian railway contributed to the development of the city.
Petropavlovsk oil production supplied oil to St. Petersburg, Moscow, Riga, Revel, Odesa, Samara, Vladivostok, as well as to England, Germany and Denmark. The largest were the Zenkov brothers' tannery, and the factory for processing the intestines of the Swiss Accola. According to the census of 1897, there were 20,014 people living in Petropavlovsk. Accounted for the bulk of Russians, Kazakhs, there were about 1500 people. A significant group were the immigrant Tatars. According to the source "Cities of Russia in 1910" St. Petersburg, 1914 in 1910, 37,973 people lived in Petropavlovsk, including by national composition: Russians — 72.8%, Turkish-Tatars — 25.2%, Poles — 0.5%, Jews-1.1%, Germans-0.2%, Finns-0.2 %.
For a long time, a distinctive feature of the city remained the low level of improvement, lack of sewage, cluttered streets, the unsanitary condition of bazaars and slaughterhouses, which contributed to the spread of diseases. The city had one hospital with 10 beds. By 1900, there were 13 educational institutions in the city, including one fifth-grade school, one women's gymnasium, two parochial schools, one parish school, two village schools, and six Tatar schools. The largest enterprise in the city was a cannery, built in 1915, which employed 100 people. There were nine mosques in the city, of which six were made of stone.
In 1896, the Petropavlovsk railway station of the South Ural railway was built near the city as part of the Trans-Siberian railway.