The story is set largely in Portugal during General Arthur Wellesley's Oporto Campaign in 1809, part of the Napoleonic Wars.