the Guadalquivir and severed the Triana bridge that made the provisioning of the city from the farms of the Aljarafe possible. The city surrendered on 23 November 1248. The Catholic religion was confined to the parish Church of Saint Ildefonso until the restoration following the reconquest of the city by Ferdinand. At that time the Bishop of Cordova, Gutierre de Olea, purified the great mosque and prepared it for celebration of the mass on 22 December. The king deposited in the new Seville Cathedral two famous images of the Blessed Virgin: "Our Lady of the Kings", an ivory statue which Ferdinand always carried with him in battle; and the silver image, "Our Lady of the See". The royal residence and the court were itinerant, so there was no permanent capital. Burgos and Toledo disputed the priority; thereafter the court most often resided in Seville, the king's favorite city. On 30 May 1252, King Ferdinand III died in the Alcázar; he was buried in the cathedral, formerly the great mosque, under an epitaph written in Latin, Castilian, Arabic and Hebrew, a fitting tribute to his sobriquet of "King of the three religions". Ferdinand was canonised in 1671; his feastday on 30 May is a local holiday in Seville, he being its patron saint. During the reign of Ferdinand's son, Alfonso X the Wise, Seville remained one of the capitals of the kingdom, as the seat of government now rotated between Toledo, Murcia and Seville. Alfonso ordered the construction of the Gothic Palace of the Alcázar and built the Church of Santa Ana (Iglesia de Santa Ana) in the Triana neighbourhood, the first Catholic church built in Seville after Muslim rule ended in the city; its architecture combines the early Gothic and the Mudéjar styles. A great patron of learning, in 1254 Alfonso X founded the Estudio General o Universidad de Sevilla for instruction in Latin and Arabic; it did not continue, however—the present University of Seville is considered to have been founded in 1505. The spirit of the king's desire to gather all knowledge, organise it, and disseminate it with missionary zeal is clearly reflected in the Siete Partidas (Seven-Part Code), one of the great foundational works of the Middle Ages. This is a judicial code based on Roman law and composed by a group of legal scholars chosen by Alfonso himself. It may be said that the king was architect