 Republican leader Casares Quiroga was replaced by José Giral, who ordered the distribution of weapons among the civilian population.This facilitated the defeat of the army insurrection in the main industrial centres, including Madrid, Barcelona, and Valencia, but it allowed anarchists to take control of Barcelona along with large swathes of Aragón and Catalonia.General Goded surrendered in Barcelona and was later condemned to death.