During the period of Francoism, the Spanish Armed Forces were in charge of the national defence and public order of the Spanish territory during the historical period when the Kingdom of Spain was under the control of General Francisco Franco. Its history goes from the beginning of the Civil War, through the military dictatorship, until 1978 and the first years of the transition to democracy.