Ramirez taught English classes for non-English speaking adults from 2001 to 2002. He was admitted to the
Maryland Bar in 2001, afterwards starting his own law office. He was sworn into the Maryland House of Delegates on January 8, 2003. He was a member of the Ways and Means Committee from 2003 to 2006, afterwards serving on the Judiciary Committee until 2011. From 2007 to 2011, Ramirez served as a deputy majority whip. Ramirez was elected to the Maryland Senate in
2010 after defeating incumbent state senator
David C. Harrington in that year's Democratic primary. was sworn into the Maryland Senate on January 12, 2011. He was a member of the Judicial Proceedings from 2011 to 2012, afterwards serving on the Finance Committee until 2015, when he returned to the Judicial Proceedings Committee. On August 20, 2017, Ramirez announced that he would not run for re-election in
2018, opting instead to run for
Prince George's County state's attorney. During his campaign, Ramirez supported decreasing arrests for low-level crimes, such as petty theft and marijuana possession, and create more county diversion programs. He received endorsements from former Prince George's County state's attorney
Glenn Ivey, U.S. Representative
Jamie Raskin, and
Service Employees International Union 32BJ. Ramirez lost to former state delegate
Aisha Braveboy in the Democratic primary, placing second with 27% of the vote.
Post-legislative career In 2016, Ramirez became Northwestern High School's soccer coach. after leading his alma matter to the school's third state championship win over
Northwest High School. During its 2022 season, the team entered the postseason as the undefeated champion of Prince George's County, but was eliminated in the semifinals after it was discovered that the team was using an ineligible player. Ramirez said that he and his coaching staff were unaware of the ineligibility and wished that the whistleblower who reported his team had approached him directly so that he could've reported it to officials directly instead of having their team eliminated. In January 2020, Ramirez filed to run to be a delegate at the
2020 Democratic National Convention, pledged to U.S. Senator
Elizabeth Warren. In March 2021, Ramirez announced that he would run for the Prince George's County Council in 2022, seeking to succeed
Deni Taveras, who was term-limited. He narrowly lost to state delegate
Wanika B. Fisher in the Democratic primary, placing second with 44.8% of the vote. Ramirez is a candidate for the Prince George's County Council in 2026, seeking to succeed Fisher, who is running for Prince George's County state's attorney. ==Political positions==