Kingdom of Galicia
The Kingdom of Galicia was established in 910 when Alfonso III the Great divided the Kingdom of Asturias among his sons. The first King of Galicia was Ordono II (910-925) who succeeded his brother Garcia I as King of Leon after his death in 924. Ordono died one year later and the third brother, Fruela II of Asturias who was elected his successor incorporated Galicia into the Kingdom of Leon. Galicia became an integral part of the Kingdom of Castile in 1037 when Fernando I of Castile conquered Leon. However, the unified kingdom of Castile and Leon was divided among Fernando’s three sons on his death in 1063. Galicia was given to his youngest son Garcia II (1063-1072) who renewed its independence.
The tensions between the three brothers that followed the division of the Kingdom of Castile and Leon were taken advantage by Count of Portugal, Nuno II Mendes who proclaimed himself independent ruler and established the Kingdom of Portugal in 1065. He was defeated by Garcia II in 1071. Garcia added to his title King of Portugal but he was defeated by his brother Sancho II of Castile in 1072. The latter was murdered by the third brother Alfonso VI in the same year, while Garcia was imprisoned for lifetime. The Kingdom of Galicia and Portugal was an integral part of Kingdom of Castile and Leon until 1139 when Alfonso I (the son of Henry of Burgundy, Count of Portugal) proclaimed himself King of Portugal and declared independence from the Kingdom of Castile and Leon.