 In 1381, by order of King Louis I of Hungary Wojnicz became a "Powiat", county town, in Sandomierz Voivodeship.It remained one of major urban centres of Lesser Poland, and on 13 September 1394 Queen Jadwiga of Poland came on a visit.In 1465, a collegiate school was opened, and the parish church was rebuilt in Gothic style.