The Advocate-General of Madras was charged with advising the Government of the British-administered Madras Presidency on legal matters. The Presidency existed from 1652 to 1950. Prior to 1858, when it was administered by the East India Company, the Advocate-General was the senior law officer of that company and also the Attorney-General of the Sovereign of Great Britain and an ex-officio member of the Madras Legislative Council.