In 1358 King Casimir III the Great gave a local nobleman Świętosław Gryfita permission to found a town, and Dębica received town rights, together with a privilege to organize weekly markets on Wednesdays. The town, however, was not actually founded until June 10, 1372, when Mikołaj of Lipiny was named its first wójt. Dębica was conveniently located along the main merchant route from Kraków to Lwów, but the newly established town was unable to compete with older urban centers of the area, Pilzno and Ropczyce. In 1446, King Władysław III of Poland allowed annual fairs to be organized on Ash Wednesdays, which resulted in the quick development of the town. For many years however, Dębica was a small town, located in the Pilzno County, Sandomierz Voivodeship, province of Lesser Poland. Lacking a defensive wall that would defend it, it was vulnerable to invasions of the Tatars, Swedes, and Hungarians, who burnt or ransacked the town every few years. As a result of these events, there are few historical monuments in Dębica. One of these is the Saint Jadwiga church, originally from the 14th century, but completely rebuilt in the late 19th century.