In 1193, however, the cathedral chapter ordered the construction of a new edifice, following the contemporary Romanesque architectural canons, to master Pere de Coma. The first stone was laid in 1203 by King Peter II of Aragon and count Ermengol VII of Urgell. Construction continued throughout the reign of James I of Aragon. It was consecrated to the Virgin Mary on 31 October 1278. The cloisters not were completed until the 14th century. The bell tower was begun in 14th century and finished in 1431. The portal Porta dels Apòstols begun in the 14th and completed in 15th century.