In the early years of the 17th C, the French invaded Malaga and took control of it. However, in 1812, during the battle of Salamanca, the French were ousted in a revolt led by the Duke of Wellington. The same year, a Constitution was written by a Cortes in Malaga.
When King Ferdinand VII came back from France where he’d gone for exile, he installed a repressive rule. Many didn’t like it and this sparked rebellions in which the like of General Torrijos together with his companions were executed. ( In Plaza de Merced, there’s a monument named after him).
Early into this century, the city also suffered another epidemic: yellow fever outbreak.