historic town with castle and church