Smith was born in Kirkcaldy, in the County of Fife, Scotland. His father, also Adam Smith, was a Scottish Writer to the Signet (senior solicitor), advocate and prosecutor (judge advocate) and also served as comptroller of the customs in Kirkcaldy. In 1720, he married Margaret Douglas, daughter of the landed Robert Douglas of Strathendry, also in Fife. His father died two months after he was born, leaving his mother a widow. The date of Smith's baptism into the Church of Scotland at Kirkcaldy was 5 June 1723 and this has often been treated as if it were also his date of birth, which is unknown. Although few events in Smith's early childhood are known, the Scottish journalist John Rae, Smith's biographer, recorded that Smith was abducted by gypsies at the age of three and released when others went to rescue him. [a] Smith was close to his mother, who probably encouraged him to pursue his scholarly ambitions. He attended the Burgh School of Kirkcaldy—characterised by Rae as "one of the best secondary schools of Scotland at that period" —from 1729 to 1737, he learned Latin, mathematics, history, and writing.