 It was founded in the first half of the 13th century by Danylo Romanowych and served as an Orthodox Church and then as a Greek Catholic Church.The present church was founded in 1735-56 by the Greek Catholic Chełm bishop Philip Włodkowic and was built according to the plans of Paweł Fontana.It is a late baroque church built in the shape of a Latin cross, three-aisled basilica with a huge eight-part dome.