William Walsh entered Wadham College Oxford in 1678, aged 15; he moved to the Middle Temple in 1679 and afterwards represented Worcestershire in Parliament (1698-1700, 1700-01, 1702-05) and Richmond, Yorkshire (1705-08); he was gentleman of the horse to Queen Anne (1702). Walsh, who lived as a country gentleman, was a friend of John Dryden and an early friend and advisor of Alexander Pope. He contributed the essay on pastoral to Dryden's translation of Virgil's Works.
A dialogue concerning women: being a defense of the sex. 1691.
Letters and poems, amorous and gallant. 1692.
A funeral elegy upon the death of the Queen. 1695.
Ode for the thanksgiving day. 1706.
The works in prose and verse. 1736, 1802.