 While digging the foundations for the present-day church, workers found a sculpture of an unknown knight.That inspired a legend that the first wooden church was founded by Petras Goštautas, a legendary ancestor of the Goštautai family, well before the official conversion of Lithuania to Christianity by Jogaila in 1387.More likely, the church was founded by Wojciech Tabor, Bishop of Vilnius (1492–1507).