Answer
The War of the Portuguese Succession, which occurred between 1580 and 1583, was the event that led to the formation of the Iberian Union. The war was fought over the Portuguese throne after the death of King Sebastian of Portugal, and it resulted in the crowning of Philip II of Spain as the king of Portugal.