David had begun work on it in 1796, when France was at war with other European nations, after a period of civil conflict culminating in the Reign of Terror and the Thermidorian Reaction, during which David himself had been imprisoned as a supporter of Robespierre. After David's estranged wife visited him in jail, he conceived the idea of telling the story to honor his wife, with the theme being love prevailing over conflict. The painting was also seen as a plea for the French people to reconcile their differences after the bloodshed of the French Revolution.