When was Portugal established?

In 1143 with the Treaty of Zamora, signed by both the King of Castille and the first king of Portugal.