Built in 1460 on the initiative of the local Cistercian abbot, Peter Hirszberga from Biecz, by the royal carpenter Maciej Mączka.