His Tale of the Tub and The Battle of the Books were both published in 1704. At first he was interested in Whig politics but he became a Tory in 1710 and proceeded to write powerful tracts such as Conduct of the Allies (1711). In 1714 he returned to Ireland as Dean of St. Patrick's and was followed by his devoted female friends Hester Johnson (the Stella of his Journal) and Esther Vanhomrigh (the Vanessa of his poetry).
In Dublin he wrote some of his best and most famous works, including Gulliver's Travels (1726), A Modest Proposal (1729) and the Drapier's Letters (1724-5). Authorship of his works is sometimes assigned to his professional title of Dean Swift.