Pau Claris died a month later. Louis XIV was titled as Count of Barcelona in succession to his father in 1643. Finally, the dismissal of the Count-Duke of Olivares, the ravages caused by the famine and the plague, as well as the commitment made by Philip IV to respect the Catalan constitutions and institutions, put an end to the war in 1652, and the Principality of Catalonia was reincorporated into the Monarchy of Spain.[3]