James Anderson, Scottish antiquary and historian, was born at Edinburgh. His father was Patrick Anderson of Walston, a church minister, who was for some time imprisoned on the Bass Rock on the Firth of Forth in Haddingtonshire.