 The University of Coimbra, the only university in Portugal until the 20th century, was founded in 1290, but in Lisbon, not in Coimbra.A papal bull was obtained from Pope Nicholas IV, and King Dinis I carried out the act of establishment.It was not until 1308 that the university was moved to Coimbra, due principally to the hostility of the people of Lisbon, though in 1338 it moved back.