This is a historical timeline of Portugal.
First Dynasty: House of Borgonha
12th century
1128, July 24 – Count Afonso Henriques defeats his mother, Theresa, Countess of Portugal, in the Battle of São Mamede and becomes sole ruler (Dux - Duke) after demands for independence from the county's people, church and nobles. 1129 - April 6, Afonso Henriques proclaims himself Prince of Portugal. 1130 Prince Afonso Henriques invades Galicia. Prince Afonso Henriques' mother, Theresa, Countess of Portugal, dies in Galicia. The Knights Hospitaller install themselves in Portugal. 1135 Prince Afonso Henriques conquers Leiria from the Moors. King Alfonso VII of Castile and León is proclaimed Imperator totius Hispaniae. Afonso Henriques doesn't recognise King Alfonso VII new title of Emperor. 1137 Battle of Arcos de Valdevez Peace treaty of Tui, whereby Prince Afonso Henriques acknowledges himself as vassal to King Alfonso VII of Castile and León, through the possession of Astorga. Prince Afonso Henriques would never keep his acknowledgement of vassal to King Alfonso VII. Prince Afonso I of Portugal tries and fails to conquer Lisbon from the Moors. The Moors retake Leiria. 1139 July 25, Independence of Portugal from the Kingdom of León declared after the Battle of Ourique against the Almoravids led by Ali ibn Yusuf: Prince Afonso Henriques becomes Afonso I, King of Portugal. King Afonso I of Portugal assembles the first assembly of the estates-general of Portugal at Lamego, where he was given the Crown from the Bishop of Braga, to confirm the independence. King Afonso I of Portugal retakes Leiria from the Moors. 1140 The Knights Hospitaller receive lands and privileges from King Afonso I of Portugal. Portuguese victory in Arcos de Valdevez against Leonese and Castilian forces. King Afonso I of Portugal tries and fails to conquer Lisbon from the Moors. The Moors retake Leiria. 1142 King Afonso I of Portugal retakes Leiria from the Moors and the town receives its foral (compilation of feudal rights) to stimulate the colonisation of the area. Siege of Lisbon (1142): A group of Anglo-Norman crusaders aid King Afonso I Henriques attempt to conquer Lisbon. However, the combined forces are insufficient and the siege failed. 1143 Treaty of Zamora: Alfonso VII of León and Castille recognizes the Kingdom of Portugal in the presence of King Afonso I of Portugal, witnessed by the papal representative, the Cardinal Guido de Vico, at the Cathedral of Zamora. Both kings promise durable peace between their kingdoms. King Afonso I of Portugal declares himself vassal to Pope Innocent II, placing the Kingdom of Portugal and himself under the protection of Saint Peter and the Holy See. 1144 The Muridun ("Disciples") under Abul-Qasim Ahmad ibn al-Husayn al-Qasi rebel in the Algarve. Ibn al-Mundhir takes Silves in his name and the governor of Beja, Sidray ibn Wazir, also supports him. Ibn al-Mundhir and Sidray ibn Wazir kill the garrison of Monchique castle, and 70 men take Mértola by surprise (12 Aug). Soon after the Andalusian governor of Niebla, Yusuf ibn Ahmad al-Bitruji declares for the Muridun. The Almoravid Yahya ibn Ali ibn Ghaniya drives the Muridun back from Seville, and subsequently Sidray ibn Wazir splits off from the other Muridun. The Taifas of Mértola and of Silves again become independent. The Order of Cistercians installs itself in Portugal, at Tarouca 1145 - The Taifa of Badajoz again becomes independent and conquers the Taifa of Mértola. 1146 The Taifa of Mértola gains independence from Badajoz. King Afonso I of Portugal marries Maud of Savoy, daughter of Amadeus III, Count of Savoy and Maurienne. 1147 March, King Afonso I of Portugal takes the Taifa of Santarém in a surprise attack. May 19, A fleet of almost 200 ships of crusaders (Second Crusade) leaves from Dartmouth in England, consisting of Flemish, Frisian, Norman, English, Scottish, and some German crusaders. The fleet was commanded by Arnold III of Aerschot (nephew of Godfrey of Louvain) Christian of Ghistelles, Henry Glanville (constable of Suffolk), Simon of Dover, Andrew of London, and Saher of Archelle. June 16, The crusaders fleet arrives at the northern city of Porto, and are convinced by the bishop, Pedro II Pitões, to continue to Lisbon. July 1, The Siege of Lisbon begins, after the armies of King Afonso I of Portugal were joined by the crusaders. October 21, The Moorish rulers of Lisbon agree to surrender to King Afonso I of Portugal, basically due to the hunger that was felt inside the city walls. The terms of surrender indicated that the Muslim garrison of the city would be allowed to flee. October 25, The city of Lisbon opens its doors to the Christian armies. As soon as the Christians enter the city the terms of surrender were broken.