From 1139 Coimbra was the capital of the kingdom of Portugal and a principal beneficiary of the generosity of its kings, until the seat of government was moved to Lisbon in 1260. Among the more famous bishops have been Pedro (1300), chancellor of King Dinis; João Galvão, who was granted the title of Conde de Arganil for himself and his successors, on 25 September 1472 by King Alfonso V, in gratitude for his service in the conquest of Arzila and Tangier; and Manuel de Menezes (1573–78), former rector of the University of Coimbra from 1556 to 1560, who fell with King Sebastian in the Battle of Alcácer Quibir on 4 August 1578.