She was first elected to the state legislature in 2008 and contributed to legislation regarding criminal justice, education, and municipal pensions. She won the 2013 special election for the U.S. House of Representatives to succeed Ed Markey in the 5th district and sits on the House Appropriations Committee. She serves as Assistant Speaker of the United States House of Representatives, the fourth-ranking post in the Democratic House leadership behind the Speaker.