<human>:  What was the outcome of the Spanish–Portuguese War?
<bot>: The war ended in a draw. The Spanish and Portuguese fought for control of the Iberian Peninsula, but neither side was able to gain a decisive victory.