Insurrection and the loss of territory marked the reign of Philip IV. While ruler of Spain, Naples, and Sicily during the 17th century, the weak monarch lost Portugal (1640) and then experienced rebellion in Catalonia (1640-53) and Naples (1647). He precipitated the decline of his native country, Spain, through exhaustive wars with Portugal, the Netherlands, and France. As a result, Philip IV was forced to cede Spanish territory to both the Netherlands and France in 1648 and 1649.