Early examples of the espionage novel are The Spy (1821) and The Bravo (1831), by American novelist James Fenimore Cooper.
The major themes of spy in the lead-up to the First World War were the continuing rivalry between the European colonial powers for control of Asia, the growing threat of conflict in Europe, the domestic threat of revolutionaries and anarchists, and historical romance.