century. Later, King Władysław II Jagiełło modernized Kazimierz Dolny, creating a modern town, with a market square and streets. At that time, the decision was taken not to build any houses on the northern side of the market square, so as not to obstruct the view of the church and the castle. In 1501, Kazimierz Dolny became the home of a starosta, and the town was passed over to the noble Firlej family, remaining in its hands until 1644. The Firlejs twice rebuilt the town and the castle, after the fires of 1561 and 1585. They cared about privileged status of Kazimierz Dolny, as a merchant town, located along the busy waterway of the Vistula. In 1628, Franciscan friars settled in Kazimierz, building a monastery and expanding the church. The town's golden age ended in February 1656 (see Deluge), when Swedish troops under King Charles X Gustav burned and ransacked it. The number of inhabitants declined, and King John III Sobieski tried to improve the situation, by allowing in 1677 Armenian, Greek and Jewish merchants to settle there. Meanwhile, the profitable Vistula river trade came to an end, as there was no demand for Polish grains in Western Europe. In the late 18th century, as a result of the Partitions of Poland, Kazimierz Dolny was cut from the port of Gdańsk and turned into a town of minor importance. From the late 19th century, more affluent residents of Lublin and Warsaw started to build properties in the area. Spas and villas were constructed, and in 1927, already in the Second Polish Republic, Kazimierz Dolny once again became a town. Partly destroyed in World War II, it was rebuilt, and on September 8, 1994, its center was officially recognized as a historical monument. Jewish life A small Jewish community was present in the city from the time of Casimir III the Great in the 14th century. The king granted the Jews a writ of rights which caused the town to become a focal point for Jewish immigration. When John III Sobieski became King in 1674, he granted the Jews of Poland a respite from taxes. Sobieski also reconfirmed for the Jews all the rights they had been granted by previous kings. During his reign, the housing restrictions were abolished and the Jewish community began to flourish again. In the 19th century, Yehezkel Taub, a disciple of the "Seer of Lublin", founded