The Attorney General of India serves as the chief legal advisor to the Government of India and represents the government in legal matters, particularly in the Supreme Court. They provide legal advice, uphold the rule of law, and protect the government's legal interests.