At the age of 14, he was apprenticed to a stonemason, and some of his earliest work can still be seen on the bridge across the River Esk in Langholm in the Scottish borders. He worked for a time in Edinburgh and in 1782 he moved to London where, after meeting architects Robert Adam and Sir William Chambers, he was involved in building additions to Somerset House there. Two years later he found work at Portsmouth dockyard and – although still largely self-taught – was extending his talents to the specification, design and management of building projects.