Next to the church, the prison-like building with those fierce, barred windows was, in fact, a prison when it was built in the 17th century.
The prison was built in order to imprison religious convicts.