Democrat William Keating defeated first-time Republican candidate John Chapman in the Massachusetts 9th Congressional District, which includes Cape Cod and the South Coast. Keating, 62, is a two-term incumbent Democrat. He was first elected to Congress in 2010 in the 10th district, but moved to the 9th and won in 2012 after redistricting left the seat empty. He previously served in the state Senate and House. He also served three terms as district attorney of Norfolk County.

Keating raised more than $1 million for this election, but only spent $771,358, according to the Center for Responsive Politics. Chapman on the other hand, raised about $776,000 and spent $728,129.

Chapman, 50, is an attorney who had been relatively unknown in regional politics. “I thought about running before, but I just didn’t feel the environment was right,” he told the Boston Globe. “I think now, I’m feeling it and, as I’m out there talking to people, they’re feeling it. They don’t feel represented. There’s arrogance in Washington.”

Along with the 6th district, the 9th was seen as a winnable target for Massachusetts Republicans, who rarely win House or Senate races. In October, an Emerson College poll put Chapman at the advantage, thanks to Republican enthusiasm about getting House seat in Massachusetts, where the delegation has been all Democratic for nearly two decades.

“I think it’s competitive,” Keating’s campaign co-chairman Philip Johnson told the Boston Globe. “He understands that it’s a real race, so he’s working as hard as ever”