Goya witnessed first-hand the French occupation of Spain in 1808, when Napoleon used the pretext of reinforcing his army in Portugal to seize the Spanish throne, leaving his brother Joseph in power.
The Second of May 1808 depicts the beginning of the uprising when the Mamelukes of the French Imperial Guard are ordered to charge and subdue the rioting citizens.
He chose to portray the citizens of Madrid as unknown heroes using the crudest of weapons, such as knives, to attack a professional, occupying army.
In 1936, during the Spanish Civil War, when Madrid was bombed by Nationalist troops, the republican government decided to evacuate the paintings from the Prado.
A truck carrying Goya's paintings had an accident, and The Second of May was badly damaged: there were tears and even pieces missing.