After involving itself in the Seven Years' War and the American Revolutionary War, France found itself financially ruined. Attempts to pass an economic plan to alleviate that in the Estates-General of 1789 led instead to the Third Estate forming the National Assembly. Succeeded, in turn, by the National Constituent Assembly and the Legislative Assembly, the various legislative bodies succeeded in rendering the monarchy constitutional, limited by democratic institutions. Attempts to remove the monarch entirely, although thwarted on 20 June 1792, led to the effective overthrow of Louis XVI on 10 August. On 21 October, France was formally declared a republic.