Tallinn's Dome Church, home to a school
The Tallinna Toomkirik, or Dome Church, is the main church of Estonia, dedicated to the Virgin Mary. It was first mentioned in 1219, though the building itself began construction in the 1230s.
King Valdemar II made it the main church for his Estonian territories in 1240. Until 1560, it was the cathedral for the Catholic bishops of Tallinn, but after that, Lutheran bishops and superintendents took over. The church was also home to a school, the Cathedral School, which operated on and off from the thirteenth century until 1939.
The Cathedral School was granted the sole right to hold schools in Tallinn by King Erik VI of Denmark in 1319. This meant that other schools were forbidden, and when the Dominicans were found to be running a school for lay students, they had to transfer them to the Cathedral School. It seems the church was serious about its monopoly on education.