It was first mentioned in a Latin document of Diocese of Wrocław called Liber fundationis episcopatus Vratislaviensis from around 1305 as Frienstad.
The creation of the town was a part of a larger settlement campaign taking place in the late 13th century on the territory of what will be later known as Upper Silesia.
Politically it belonged initially to the Duchy of Cieszyn, formed in 1290 in the process of feudal fragmentation of Poland and was ruled by a local branch of Piast dynasty until 1653.
[4] After the 1540s Protestant Reformation prevailed in the Duchy of Teschen (Cieszyn) and a local Catholic church was taken over by Lutherans.
It was taken from them (as one from around fifty buildings in the region) by a special commission and given back to the Roman Catholic Church on 14 April 1654.
The 17th century had a mostly negative impact on the town's development with fires, epidemics and the Thirty Years' War.
Industrial and coal mining expansion as well as the construction of railroads led to rapid growth of the area's importance.
[7] Following the Munich Agreement, in October 1938 together with the Trans-Olza region it was annexed by Poland, administratively organised in Frysztat County of Silesian Voivodeship.