It was written during the Napoleonic Wars, which directly followed the French Revolutionary Wars, such that England and France had been in conflict for fifteen years at the time of the poem's composition.