The beginnings of Twardogóra go back to the times of Polish rule under the first Piast dynasty. It was then a trade settlement connected to the trade route from Wrocław to Poznań. It was inhabited by Poles, descendants of the Silesians tribe, and from the 12th century also settlers from other countries, especially from the German states, came to Twardogóra. The modern name of the town is said to have been created during the First Mongol invasion of Poland in 1241. The inhabitants of the settlement gave the Mongols a hard resistance and hence the name, which means in Polish "Hard Mountain". Its name also covers terrain topography. Town rights were given to Twardogóra by Henry III, Duke of Głogów on August 1, 1293. Although Polish, the town was first mentioned as Vestenberg in 1293. From the beginning of the 14th century, Twardogóra was part of the Duchy of Oleśnica, which remained under the rule of the Polish Piast dynasty until 1492, although as a fief of the Kingdom of Bohemia.
Residents of the city remembered the unpleasant experiences of the Hussite Wars in the late 15th century building a defensive structure. A hundred years later a castle was built there. In 1526, Twardogóra and the Duchy of Oleśnica came under the suzerainty of the Habsburg Monarchy. At that time, duke John, from the Czech noble Podiebrad family, introduced Lutheranism in 1538. It is presumed that at that time there was already a church in the city, which was thoroughly renovated in 1587. The Duchy of Oels from 1647 was under the rule of dukes of Württemberg. During its rule, Twardogóra flourished. Change in Twardogóra was foremost contributed to by Dutches Eleonora Karolina Wirtemberska. She rebuilt and expanded the town's castle into a Baroque palace. She also took care of the health of the people, the development of the craft, trade and education, as well as the development of charities. In the years 1729–1738 the church was rebuilt giving it its present shape. In 1742 Silesia became part of the Kingdom of Prussia and the town came under Prussian suzerainty, remaining part of the Duchy of Oleśnica. In 1743 Henryk L. von Reichenbach brought the town hardwood, and the town joined the newly created state country in Goszcz a year later. In 1786 the town was inhabited by 1175 people, among whom the most prosperous at the time were the weavers.
19th and 20th centuries
At the beginning of the 19th century, two new cemeteries were set up outside the city, separate for Protestants and Catholics, and the old church cemetery was demolished. Catholics built a church in 1869 near the new market. In 1873, a fire destroyed the evangelical church, which was rebuilt three years later in Gothic Revival style. From the middle of the 19th century Twardogóra began to acquire industrial character. Henryk Piirschel founded a mechanical weaving factory in 1852, and Henry Lichtenberg began industrial furniture production. Between 1871 and 1945 the town was part of Germany. The demographic development of the town in the 19th century caused an increase in the town's infrastructure. Before the World War I, a credit bank, a printing house, a court and detention center, a town hall, a cemetery chapel, a town hall and a new water supply and electrification of the city was conducted. In 1944, the town was home to 4500 people, who primarily engaged in craft, trade and services. The town had, among other things, an agricultural and general school, two cinemas, a hospital, a child's home and extensive gastronomy. German rule ended in Twardogóra on January 23, 1945, when it came under Polish administration. As a result of Nazi Germany's defeat in World War II, the town was transferred to Poland in accordance with the Potsdam Agreement.