In 2002, she was elected to the Maine House of Representatives, and in 2008, she became Maine's first female Attorney General, serving until 2011 and again from 2013 to 2019.