Although it required a succession of internal military campaigns, he disarmed the fortified Huguenot towns that Henry had allowed. He involved France in the Thirty Years' War (1618–1648) against the Habsburgs by concluding an alliance with Sweden in 1631 and, actively, in 1635. He died in 1642 before the conclusion of that conflict, having groomed Cardinal Jules Mazarin as a successor. Louis XIII outlived him but by one year, dying in 1643 at the age of forty-two. After a childless marriage for twenty-three years his queen, Anne, delivered a son on 5 September 1638, whom he named Louis after himself.