Family
In 1146, Afonso married Matilda, daughter of Amadeus III, Count of Savoy and Mahaut of Albon, both appearing together for the first time in May of that year confirming royal charters. They had the following issue:
Henry (5 March 1147 – 1155) named after his paternal grandfather, Henry, Count of Portugal, he died when he was only eight years old. Despite being just a child he represented his father at a council in Toledo at the age of three;
Urraca (1148–1211), married King Ferdinand II of León and was the mother of King Alfonso IX. The marriage was subsequently annulled in 1171 or 1172 and she retired in Zamora, one of the villas that she had received as part of her arras, and later at the Monastery of Santa María in Wamba, Valladolid where she was buried;
Teresa (1151–1218), countess consort of Flanders due to her marriage to Philip I and duchess consort of Burgundy through her second marriage to Odo III;
Mafalda (1153 – after 1162). In January 1160, her father and Ramón Berenguer IV, Count of Barcelona, negotiated the marriage of Mafalda to Alfonso, future King Alfonso II of Aragon who at that time was three or four years old. After the death of Ramón Berenguer IV in the summer of 1162, King Ferdinand II of León convinced his widow, Queen Petronilla, to cancel the infante's wedding plans with Mafalda and for Alfonso to marry instead Sancha, daughter of Alfonso VII of León and his second wife Queen Richeza of Poland. Mafalda died in her childhood at an unrecorded date.
Sancho, the future King of Portugal (11 November 1154 – 26 March 1211). He was baptised with the name of Martin for having been born on the saint's feast day;
John (1156–25 August 1164); and
Sancha (1157–14 February 1166/67), born ten days before the death of her mother, Sancha died before reaching the age of ten on 14 February according to the death registry at the Monastery of Santa Cruz (Coimbra) where she was buried.
Before his marriage to Matilda, King Afonso fathered his first son with Chamoa Gómez, daughter of Count Gómez Núñez and Elvira Pérez, sister of Fernando and Bermudo Pérez de Traba:
Afonso (1140–1207). Born around 1140, according to recent investigations, he is the same person as the one often called Fernando Afonso who was the alferes-mor of the king and later Grand Master of the Knights Hospitaller. His presence in the court is first recorded in 1159. In 1169 he succeeded as alferes-mor his half-brother, Pedro Pais da Maia, the legitimate son of his mother and Paio Soares da Maia.
The extramarital offspring by Elvira Gálter were:
Urraca Afonso. In 1185, her father gave her Avô, stipulating that this villa was to be inherited only by the children that she had with her husband Pedro Afonso de Ribadouro (also known as Pedro Afonso Viegas), grandson of Egas Moniz, which could indicate another previous or subsequent marriage. In 1187, she exchanged with her half-brother, King Sancho, this villa for Aveiro. She died after 1216, the year she made a donation to the Monastery of Tarouca.
Teresa Afonso. In some genealogies she appears as the daughter of Elvira Gálter, and in others as the daughter of Chamoa Gómez. Her first marriage was with Sancho Nunes de Barbosa with whom she had a daughter, Urraca Sanches, who married Gonçalo Mendes de Sousa, the father of Mendo Gonçalves de Sousa known as "Sousão". Her second husband was Fernando Martins Bravo, Lord of Bragança and Chaves, with no issue from this marriage.
King Afonso was also the father of:
Pedro Afonso (died after 1183), Lord of Arega and Pedrógão, mayor of Abrantes in 1179, alferes of King Afonso I between 1181 and 1183, and Master of the Order of Aviz.