Hrubieszów (xruˈbjɛʂuf; Hrubeshiv; Hrubyeshov) is a town in southeastern Poland, with a population of around 18,212 (2016). It is the capital of Hrubieszów County within the Lublin Voivodeship. Throughout history, the town's culture and architecture was strongly shaped by its Polish Roman Catholic, Greek Catholic and Jewish inhabitants. Almost all of the Jewish community of the town, however, were murdered in the Holocaust. Hrubieszów is also the birthplace of Polish writer, novelist and author of popular books Bolesław Prus, and entrepreneur and Holocaust survivor Henry Orenstein. The area formed part of the Cherven Cities, a territory which was included within the emerging Polish state in the 10th century by its first historic ruler Mieszko I. It was invaded and annexed from Poland by the Kievan Rus' in 981, and afterwards it changed owners several times between Poland and the Rus', and even fell to the Mongol Empire in the mid-13th century. The origins of the town go back to the early Middle Ages, when a defensive gord existed on the Huczwa river island. It was first mentioned in 1254, as a hunting settlement located among forests. In 1366, the area, along with Hrubieszów, then called Rubieszów, was eventually recaptured by King Casimir III the Great, and reintegrated with the Kingdom of Poland. Some time in the late 14th century, a wooden castle was built here, as a residence of a local governor. Probably in 1400 Rubieszów received a town charter from Polish king Władysław II Jagiełło, who visited it in 1411, 1413 and 1430. A castle and church were later added. King Casimir IV Jagiellon ordered the construction of a route from Lublin to Lwów passing through Rubieszów. The town was destroyed several times by Crimean Tatars, who raided this area in the 15th, 16th and 17th centuries, and by the rebellious Cossacks. After the First Partition of Poland in 1772, Hrubieszów was annexed by Austria. In 1800, Stanisław Staszic founded the Hrubieszów Agricultural Society, the first cooperative organization in Europe, which existed until 1945.