The Legal Counsel of the Federal Executive (Consejero JurÃÂdico del Ejecutivo Federal, CJEF) is a government official who, alongside the 19 secretaries of state, is a member of the cabinet of the President of Mexico. The purpose of the office of the legal counsel () is to review and validate legal instruments that are submitted to the president for consideration, such as decrees, agreements, legislative bills or constitutional reforms. Its other tasks include drafting or assisting in the drafting of bills that are to be presented to the Congress of the Union. It also represents the president in unconstitutionality actions or constitutional controversies as provided for in the Constitution and represents him or her in all lawsuits in which he or she is a party.
The office of the Legal Counsel of the Federal Executive was created on 15 May 1996 during the administration of Ernesto Zedillo. By means of constitutional amendments enacted on 30 December 2015, article 26 of the Organic Law of the Federal Public Administration was revised to raise the office of the Legal Counsel to cabinet status.
The functions of the CJEF are set out in articles 43, 43-bis and 43-ter of the Organic Law of the Federal Public Administration. They include: