In the early 13th century a monastery was founded at the site, however, it was destroyed in the First Mongol invasion of Poland in 1241. The Cistercians rebuilt the monastery in 1252–1255. A foundation document was issued by Duke Władysław Opolski of the Polish Piast dynasty in 1258, and it was confirmed by Pope Gregory X in 1274. The Cistercians developed the village. In the early 14th century, Duke Przemysław of Racibórz funded the construction of a new church (present-day Basilica) in Rudy.