The crisis was precipitated by Napoleon's removal of Bourbon Dynasty from the throne of Spain (he convinced Ferdinand VII to abdicate, and his father Charles IV to renounce any claim to returning to the throne he had abdicated only months earlier) and his invasion of Spain.