The Tale of a Tub was first published, anonymously, in 1704; but it had been sketched out and composed, if not while Swift was at Trinity College, Dublin, at least during his first residence with Sir William Temple at Moor Park, in or after 1692. Swift would never acknowledge himself to be the author; but one or two indirect allusions in his writings, and other evidencesto say nothing of the unmistakable power of the allegory and character of the styleleave, and almost from the very first allowed, no room for doubt on that point. Under the allegory of three sons altering, neglecting, observing, or mistaking, the will of their father, Swift satirises unsparingly the corruptions and pretensions of the Church of Rome, and the extremes and follies of the Dissenting bodies; and describes with approval, or at least without conspicuous offensiveness, the origin and establishment of the Reformed Churches, particularly that of England. At the same time, in his Preface and Digressions, he stops and turns aside to deal piercing thrusts and crushing downstrokes at arrogant, feeble, pretentious, and scurrilous critics, pedants, and authors, of his own and all time. Though in its day and way it did service to the interests of the High Church party, the work could not escape the imputation of levity and irreligion; and most of all Swift's writings it stood in the way of that preferment in the Church, the long delay and limited measure of which so bitterly disappointed him.
The Battle of the Books was written at Moor Park, during Swift's second residence there; but though believed, with the Tale of a Tub, to have been arranged for publication before Sir William Temple's death in 1699, it was not published till 1704. The occasion of it was Sir William's entering, on the side of the ancients, into a controversy that had been initiated by Perrault and Fontenelle in France; who contended that the modern was far superior to the ancient learning. To Temple's Essay on Ancient and Modern Learning, a reply on the side of the moderns was made by Sir William Wotton, B.D., and the learned Dr Bentley; the former attacking Temple's main argument, the latter, in an appendix, assailing the genuineness of the Epistles of Phalaris and the Fables ofÆsop, which Temple had cited as