 It was ordered and funded by Vytautas the Great as a commendation to the Blessed Virgin Mary for saving his life after a major defeat in the Battle of the Vorskla River.Being quite close to the river the church has suffered many times from spring floods.In 1812 it was burned by French troops.