Sochaczew (sɔˈxat͡ʂɛf) is a town in central Poland, with 38,300 inhabitants (2004). In the Masovian Voivodeship (since 1999), formerly in Skierniewice Voivodeship (1975–1998). It is the capital of Sochaczew County. Sochaczew has a narrow-gauge railway museum with a line that runs as far as Wilcze Tułowskie. 750 mm-gauge steam trains run on the line on Saturdays from spring to the end of summer. Sochaczew was first mentioned in documents from 1138, when the Duke of Poland Bolesław III Wrymouth died at a local Benedictine monastery. By 1221 Sochaczew had already been an important center of administration, and a seat of a castellan, who lived in a defensive gord. The town prospered due to its location at the intersection of main merchant routes (from Kalisz to Ciechanów, and from Warsaw to Poznań). In the first half of the 13th century, construction of two churches began; both were completed and consecrated by the Bishop of Płock in 1257. Some time in the mid-14th century, Duke Siemowit III, Duke of Masovia held here a meeting of Mazovian dukes and notables. It is not known when Sochaczew received its town charter; by 1368 it had already been a town (civitas). After the death of Duke Siemowit VII, Sochaczew was on February 4, 1476 reintegrated directly with the Kingdom of Poland as a reverted fief. King Casimir IV Jagiellon granted several privileges to the town, including the right to hold annual fairs, on the second Sunday after Easter. Sochaczew was famous for its craftsmen, the town also had a royal mill. In 1478 the building of two churches was completed and in 1487 a hospital was built. At the same time, the town frequently burned in several fires (1461, 1506, 1539, 1590, 1618, and 1644). Sochaczew was a royal town of Poland, administratively located in the Rawa Voivodeship in the Greater Poland Province. In 1570, the population of Sochaczew was about 3,000, with 211 craftsmen, 17 merchants and shopkeepers, and 394 buildings.