The church was founded in 1412. It was badly damaged during Lithuanian siege of 1428 and burned in fire in 1497.