Portugal became its own kingdom in 1139 but was not officially recognized until 1143. Portugal has had links with England since the 1100s via a treaty. The border with Spain has been almost the same since the 13th century. Fishing and trade with other countries are important here.