I think Spain did take over Portugal at one point. It wasn't so much a war as the port king died and his closest relative was the spanish king so he was like LOL I'm taking over and the pork and cheese nobles we're like... shit he's right that's how our stupid system of government works.  Then the dead kings fam came back from their brazilian vacation and were like "hey spain get the fuck out" and they did cause they had forgot they left some paeilla back at home.