On his way to Portugal, then allied with the English, Emperor Napoleon stopped in Spain and aroused the anger of the patriots by deposing the king and replacing him with his brother Joseph. From 1808 to 1814, the Spaniards rose up against the French invaders, starting on May 2, 1808, when they attacked the stagecoaches in charge of exfiltrating the royal children to France. When the king of Spain, restored to his throne, commissioned Goya to paint a picture commemorating the heroic struggle of the people, the painter chose the violent confrontation of May 2, in which he expressed all the violence of the assault on the emperor's troops.