Welsh was born at Braefoot Farm near Moffat on 11 December 1793, the youngest of 12 children of David Welsh, a sheep farmer at Earlhaugh and Tweedshaws. He was educated at Moffat Parish School, and tutored at home by Rev McWhir, later minister of Urr in Galloway, then David was sent to the High School in Edinburgh. He studied divinity at the University of Edinburgh and was licensed to preach in 1816 by the Presbytery of Lochmaben. In 1821 he was ordained as minister of Crossmichael. From there he was translated to St David's Church in Glasgow. Glasgow University granted him a Doctor of Divinity in 1831. In the 1820s, Welsh was notable for his attempt to forge an alliance between the evangelicals and the Edinburgh Phrenological Society - then at the height of its influence. However, Welsh was out-manoeuvered by George Combe - the "high priest" of the phrenologists - who prohibited all discussion of religious matters at phrenological meetings. Welsh and his fellow evangelicals then left the society. In 1831 he was appointed professor of ecclesiastical history in the University of Edinburgh. In 1834 he was elected a fellow of the Royal Society of Edinburgh, his proposer being Sir William Hamilton. Welsh later presided at a major event in 19th-century church history. In 1842 he was Moderator of the General Assembly of the Church of Scotland therefore being moderator during the critical Disruption of 1843. Sadly for the established church, but happily for the Free Church, he headed the secession on the day of the exodus. He then chaired the first General Assembly of the Free Church of Scotland. He is seen on the Disruption Painting by Hill to Thomas Chalmers's right holding the protest he read to the Church of Scotland assembly. He was secretary of the Scottish Bible Board and also editor of the North British Review. In later life he lived with his family at his Edinburgh townhouse, 59 Melville Street. He retired to Drumfork House near Helensburgh in his final years. He died of a heart attack on 24 April 1845 at Camus Eskan in Dumbartonshire, and is buried against the western outer wall of the southern section of St Cuthbert's churchyard in Edinburgh.
David Welsh was married to Mary Hamilton in Glasgow on 1 June 1830 Mary was sister to William Hamilton. Lord Provost of Glasgow 1826 to 1828. They had 10source? children, including: