Around 1818, Beyle, who was thirty-three years old and living in Milan, began writing the Life of Napoleon to respond to Madame de Staël who, in a violent posthumous libel "Considerations on the Principal Events of the French Revolution", had attacked the Emperor.