In September 1808 the local and provincial juntas ceded their power to the Supreme Central Government Junta of the Kingdom, which led the war against the French and was recnigzed as the legitimate government of Spain by the United Kingdom and other anti-napoleonic countries.