An advocate general is a senior officer of the law. In some common law and hybrid jurisdictions the officer performs the function of a legal advisor to the government, analogous to attorneys general in other common law and hybrid jurisdictions. By contrast, in the European Union and some continental European jurisdictions, the officer is a neutral legal advisor to the courts.
In India, an advocate general is a legal advisor to a state government. The post is created by the Constitution of India and corresponds to that of Attorney General of India at the federal or central or union government level. The Governor of each state shall appoint a person who is qualified to be appointed judges of highcourt.
In Pakistan an advocate general of the Province of the Punjab is a constitutional post and is an authority duly appointed under Article 140 of the Constitution of Islamic Republic of Pakistan. A person who is qualified to be appointed as a Judge of the High Court is appointed as the Advocate General for the province. He is the principal law officer of the Province.
The Advocate General and his office defends and protects the interest of the provincial government and gives invaluable legal guidance to the provincial government in formulation of its policy and execution of its decision.Advocate-General of the Punjab is also Ex Officio Chairman of Punjab Bar Council.
The office of the Advocate General is directly connected with the High Court of the province. Pre-independence (1947) the High Court of judicature for the premises of Punjab and Delhi was established at Lahore and was called the High Court of Judicature at Lahore. After independence of Pakistan, the High Court at Lahore ceased to have jurisdiction over Delhi and the then East Punjab. On 14 August 1947 the High Court (Lahore) Order, 1947, preserved the continuance of the High Court at Lahore with all rights, powers and privileges as hitherto enjoyed and possessed by it before the appointed day. The Governor-General of the Dominion of Pakistan became the substitute of the Crown in matters of appointment etc. of Judges of the Lahore High Court.
Historically, the United Kingdom Government was advised on matters of Scots Law by the Lord Advocate but following the Scotland Act 1998 and the establishment of the Scottish Parliament the Lord Advocate became a member of the Scottish Executive.