All the churches of Teruel are contemporary with its foundation (1176), as the founders built nine churches, one, Santa Maria de Mediavilla, in the centre, and the remaining eight in a circle following the circuit of the walls. The central church was made a collegiate church in 1423 and named the cathedral in 1577. It was originally built of brick and rubblework, but since the restoration in the seventeenth century it has lost its primitive character. The Doric choir stalls were the gift of Martín Terrer de Valenzuela, Bishop of Teruel, and later of Tarazona.