The war began in Spain with the Dos de Mayo Uprising on 2 May 1808 and ended on 17 April 1814 with the restoration of Ferdinand VII to the monarchy. The French occupation destroyed the Spanish administration, which fragmented into quarrelling provincial "juntas". The episode remains as the bloodiest event in Spain's modern history, doubling in relative terms the Spanish Civil War.