Abstract: The objective of this article was to comparatively analyze the codes of ethics for federal public servants that have been in force in Mexico and their relationship with human rights and criminal law, in order, first, to know how they have evolved said codes based on their ethical principles and values, second to study the link they have with the constitutional reform of human rights of 2011 and criminal law, to find an explanation that allows understanding the reason why some non-governmental organizations (NGOs ), as Human Rigth Watch (HRW), Transparency International (TI), Latinobarometro, World Justice Project (WJP), Mexico evaluates, continue to place Mexico in the first places of corruption and impunity.