Gmina Sanok is a very long history. According to the archaeological research carried out in the municipality, has been confirmed the hypothesis that these lands were inhabited in the stone age. Witness the numerous finds, such as: stone hoes with cow-hide and hatchet with Prusieka. Other finds come from the Neolithic and early Bronze age, while the Roman and Celtic coins indicate a later commercial contacts with the Roman Empire and Celtic tribes. The first mention of the rural County, Sanok, in modern times, dates back to the 12th-century RUS ' Volhynian Chronicle regarding hipackiego ". It was then that these areas, which are in the possession of the Princes of RUS, were captured by the Hungarian Prince Gejzę II. In the 14th century. Galician Ruthenia lands were joined to the Polish by Casimir the great, who started the kolonizacyjną action on them. In the 14th and 15th century. arise in these areas many new settlements, among others: Trepcza, Czerteż, Prusiek, Nowotaniec, Kostarowce, Stróże Wielkie and Małe, Hłomcza, Płowce, Sanoczek, Subcarpathian Voivodeship, Międzybrodzie. These settlements were owned by nobility and chivalry. Considerable good focused in their hands wielding the Castle Sobień-Kmitowie. Next to them the big then clans were: Oleśniccy, Matiaszowie, Tarnawscy and Czeszykowie.
The wealth of this land becomes salt obtained from sources is. The age of the 16TH brings conflicts caused by the deterioration of the situation in the countryside. Revolts against the peasantry to work in servitude. The Whole Of The 17th Century. plunged was in the heat of war and invasions, which have worsened the economic situation. Especially bad was a Tatar invasion in 1624. It caused havoc, many villages have been burned and their inhabitants they got in the game. In 1772. the first partition of Polish. The municipality was in the Austrian partition. Zaborca abolished the existing administrative divisions, when designating sites of our municipality to komancza, and then people. The End Of The 18th Century. It brings significant economic recovery. Despite slavery develops. A particular bloom is experiencing kołodziejstwo, cooperage, carpentry and masonry. They arise brick plants (Mrzygłód), mills and breweries (Markowce, Jurowce and Sanoczek, Subcarpathian voivodeship). The year 1848 brings the abolition of serfdom. Improving the situation of the rural population, the increase in agricultural production and technical progress. New farming methods, in the villages are weaving workshops, oil mills and sawmills propelled water. The second half of the nineteenth century. the dynamic development of the oil industry. Oil fields are discovered m.in. in Tyrawie. Another powerful stimulus to economic development gave built in 1872. the railway line Przemyśl-slate and Zagórz – Sanok – Jasło commissioned in 1884. In the end of the 19th century. begins to develop cooperative movement. Are the municipal coffers to help the villagers. Economic development is suddenly stopped by the outbreak of World War I. In the autumn of 1918. open up new perspectives. After many years of slavery coming back here was lost. However, it was not until years 30. they bring considerable economic recovery. Recovering economy village, decreases the number of illiterate, rural universities for example. in the Good. In 1939. World War II breaks out. Starts with terror and absolute systematic overexploitation the occupied lands. The occupation meet cruel toll, death bear 10 thousand. Poles and 8 thousand. The Jews. Remain after it devastated factories and huge material damage. The Ukrainian-Polish conflict-related displacement have led to a significant reduction in the number of population.