Napoleon I of France declared himself First Consul of the French Republic on 18 February 1799, and crowned himself Emperor in 1804. Because Spain controlled access to the Mediterranean, the country was politically and strategically important to French interests. The reigning Spanish sovereign, Charles IV, was internationally regarded as ineffectual. Even in his own court he was seen as a "half-wit king who renounces cares of state for the satisfaction of hunting",and a cuckold unable to control his energetic wife, Maria Luisa of Parma. Napoleon took advantage of the weak king by suggesting the two nations conquer and divide Portugal, with France and Spain each taking a third of the spoils, and the final third going to the Spanish Prime Minister Manuel de Godoy, along with the title Prince of the Algarve. Godoy was seduced, and accepted the French offer. He failed, however, to grasp Napoleon's true intentions, and was unaware that his new ally and co-sovereign, the former king's son Ferdinand VII of Spain, was using the invasion merely as a ploy to seize the Spanish parliament and throne. Ferdinand intended not only that Godoy be killed during the impending power struggle, but also that the lives of his own parents be sacrificed.