The Advocate General is a UK Government minister and the UK Government's chief legal adviser on Scots law.