In the 18th and 19th centuries the local Basilian monastery was famous for its school, where many of young local noblemen, among them poet Antoni Edward Odyniec and writer Ignacy Chodźko, got their primary education.