In 1939, as the Spanish Civil War finished with the defeat of the Republican side, the Generalitat of Catalonia as an institution was abolished and remained so during all the Francoist dictatorship until 1975. The president of the Generalitat at the time, Lluís Companys, was tortured and executed in October 1940 for the crime of 'military rebellion'.