The Solicitor General of India is the second- highest-ranking law officer of the Government of India, subordinate to the Attorney General for India. Their primary role is to assist the Attorney General and advise the Government of India on legal matters and represent the Union and state governments in the Supreme Court and High Courts. Thus, they function primarily as a legal adviser and law officer.