The conquest of Leon did not include Galicia which was left to temporary independence after the withdrawal of the Leonese king. Galicia was conquered soon after (by Ferdinand, son of Sancho the Great, around 1038). However, this brief period of independence meant that Galicia remained a kingdom and fief of Leon, which is the reason it is part of Spain and not Portugal. Subsequent kings titled themselves kings of Galicia and Leon, instead of merely king of Leon as the two were united personally and not in union.