Grybów is a town in the Nowy Sàcz County, in Lesser Poland Voivodeship of Poland, with 12,409 inhabitants (2005). It is located in the heartland of the Doà Ây Jasielsko Sanockie (Doà Ây Pits), and its average altitude is 370 metres above sea level, although there are some hills located within the confines of the city, Grybów has the steepest town square in medieval Europe.
The history of Grybów dates back to the Middle Ages, when the early settlement belonged to the Castellan of Biecz, under King Casimir III the Great of the Piast dynasty. Following the destruction caused by the Mongol invasion, a new town charter modeled on the Magdeburg law was issued by Casimir on 15 May 1340 to Hanko Bogacz, a local burgher. The new town centre was erected on a hill at the site of former Biaà Âa village. The new town attracted settlers from Silesia and Saxony (see Walddeutsche), who called the town Grynberg.
Due to convenient location and several royal privileges, Grybów prospered and became a center of local trade and cloth manufacturing. In the period known as Polish Golden Age, Grybów had a renowned school of sculptors, in which the figure of Madonna of Kruzlowa was made. During the catastrophic Swedish invasion of Poland (1655-1660) Grybów was captured by the Swedish forces, who looted the town, and then set it on fire, together with ancient parish church and nearby castle. The Swedish raid was followed by a Transylvanian invasion of 1657, which brought further destruction upon the town. Furthermore, there were frequent fires and outbreaks of the plague, and by the late 17th century, Grybów turned into a small, poor town. In the summer of 1768, the area of the town witnessed Polish-Russian skirmishes, during the Bar Confederation revolt.
From the first partition of Poland in 1772 until 1918, the town was part of the Austrian monarchy (compromise of 1867), the chief city of the district with the same name, one of the 78 provinces of Austrian Galicia. During Austrian rule, there was widespread poverty and starvation among local peasants. In 1846, several manor houses were burned in the so-called Galician slaughter. In 1849, Grybów was visited by Emperor Franz Joseph I of Austria, and in the 1860s, the town was visited by painter Artur Grottger, who came here to see his fiancée, Anna Monne. In 1900, Stanislaw Wyspianski and Józef Mehoffer also visited the town. By the late 19th century, Grybów slowly recovered, due to construction of a rail line and discovery of oil. In May 1915, the Battle of Gorlice took place near the town.
In the Second Polish Republic, Grybów served as the county capital until 1932, when the Grybów County was dissolved. In the 1930s, local villages were centers of peasant protests (see 1937 peasant strike in Poland), and the town was visited several times by Wincenty Witos.
During World War II, on 20 August 1942, 360 Jewish citizens of the town were rounded up by the Nazis and taken two kilometers away to be murdered in the woods of Biata Nawa. There stands a monument on the site of the mass grave today, and the restored Jewish cemetery was unveiled in November 2019.
In late 1944, the Wehrmacht named Grybów a fortress town, but due to rapid Soviet advance, the Germans retreated in January 1945. Nevertheless, almost 70% of the town was destroyed.