He served as a federal deputy in the LXIII Legislature of the Mexican Congress, representing the State of Mexico from the fifth electoral region.
[1] Ramírez was active in the PAN as early as 1991, when he served as a national councilor; after stints at the Legislative Investigation Center for the LV Legislature and as a political analyst for the city of Naucalpan de Juárez, he would rejoin the party in 1999.
The next year, he was elected to the LVIII Legislature for the State of Mexico's 15th district,[2] sitting on commissions dealing with National Defense, Strengthening of Federalism, and Special on Public Safety.
He presided over the Public Safety Commission and sat on those for Constitutional Points, Government, Justice, Rules and Parliamentary Practices, Federal District, Jurisdictional, and Radio, Television and Film.
After his six-year term ended, he was sent to the LVIII Legislature of the Congress of the State of Mexico, where he was the PAN's parliamentary coordinator.