Under the Hugo Chávez administration, Moreno served as a lower-level judge. Following the 2002 attempted coup d'état that nearly overthrew Chávez, Moreno prosecuted many government opponents between 2002 and 2005. He prosecuted law enforcement leader Iván Simonovis, accusing him of leading the violent acts of the coup attempt which eventually led to the imprisonment of Simonovis.