Defoe worked for the government as a secret agent; he wrote reports, pamphlets, and travelled widely; he went to Scotland several times to gather information at he the time of the Units of 1707.
He also worked actively as a journalist. From 1704 to 1713 he wrote the periodical "The Review", the main government organ. As a dissenter and a representative of the middle class, Defoe could not but support the Hanoverian succession, which he did with various pamphlets.
But he was not exclusively concerned with politics he also wrote on current and affairs, religion, and various reasons subjects, and his prove was so effective that he is considered the father of modern journalism.
In 1713 he was arrested and imprisoned again for political reasons.
When the Tories fell in 1714 Defoe did not stop writing for the government because the Whines acknowledged his merits.
It was only in 1719 that we wrote Robinson Cruse.
This book became immensely popular, and was widely translated and imitated.
It particularly appealed to the middle ad lower classes, who identified themselves with the hero.
The success led Defoe to write two sequels to it, Father Adventures of Robinson Cruse and Serious Reflections of Robinson Cruse.
In 1720 he writer produced The live of Captain Singleton.