Zgorzelec (AUDPl-Zgorzelec.oggzgo'żelec, Görlitz, Gorlice, Upper Lusatian German dialect: Gerlz, Gerltz, and Gerltsch, Zhorjelc, Zgórjelc, Zhořelec) is a town in southwestern Poland with 30,374 inhabitants (2019). It lies in Lower Silesian Voivodeship. It is the seat of Zgorzelec County and of Gmina Zgorzelec (although it is not part of the territory of the latter, as the town is an urban gmina in its own right). Zgorzelec is located on the Lusatian Neisse river, on the Polish-German border adjoining the German town of Görlitz, of which it constituted the eastern part up to 1945.
Up until 1945, the modern-day towns of Zgorzelec and Görlitz were a single entity; their history up to that point is shared. The date of the town's foundation is unknown.
In the Early Middle Ages, the area was inhabited by the Bieżuńczanie tribe, one of the old Polish tribes, which together with the Sorbian Milceni tribe, with which it bordered in the west, was subjugated in 990 by the Margraviate of Meissen, a frontier march of the Holy Roman Empire. It was conquered by Polish Duke, and future King, Bolesław I the Brave in 1002, whose goal was to decisively unite all Polish tribes, and remained part of Poland during the reign of the first Polish kings Bolesław I the Brave and Mieszko II Lambert until 1031, when the region fell again to the Margraviate of Meissen. Zgorzelec/Görlitz was first mentioned in a document from the King of Germany, and later Holy Roman Emperor, Henry IV in 1071 as a small village named Goreliz in the region of Upper Lusatia. In 1075, the region came under the rule of the Duchy of Bohemia (kingdom from 1198). In the 13th century the village gradually turned into a town. It became rich due to its location on the Via Regia, an ancient and medieval trade road. In 1319 it became part of the Piast-ruled Duchy of Jawor, the southwesternmost duchy of fragmented Poland, and later on, became part of Bohemia again.
In the following centuries, from 1346, it was a wealthy member of the Six-City League of Upper Lusatia, consisting of the six Lusatian cities Bautzen, Görlitz, Kamenz, Lubań, Löbau and Zittau.