 That time, in curia sat on bishop Maksymilian Rylo, who finished the investment and founded rich decoration of sanctuary.On 15 September 1765 the church was the place of the coronation of the marvellous painting of the Our Lady of Chełm.The painting was revered throughout the country because of its connection with the victory in the Battle of Berestechko that took place in 1651.