Beethoven wrote his third symphony in 1803. By that time the Terror had been over for almost a decade and Napoleon was well on his way to waging war against most of Europe. It’s only when he declared himself Emperor in 1804 that Beethoven drew the line. By that time the symphony was already finished and was merely re-titled Eroica (the original title was Bonaparte).
Although the date is always given as 1803, it was not completed, evidently, until 1804.
Somewhat OT, our symphony conductor in one of his pre-symphony sessions said that he believed this was his favorite. I was astonished at that assertion, considering the others, but the older I get, the more I am coming around to that thinking.