Cambridge will be split into two congressional districts, despite efforts to prevent it, state Rep. Alice Wolf said Wednesday. The bill to split the city has passed the House and Senate and will soon make its way to Gov. Deval Patrick.

Reps. Wolf, Tim Toomey and Jonathan Hecht had submitted an amendment in the House suggesting that a swap be found that would unite Cambridge while preserving the majority-minority district, Wolf said, and a comparable amendment was filed in the Senate by Sens. Patricia Jehlen, Sal DiDomenico and Anthony Petruccelli.

But the House amendment failed, Wolf said.

“Cambridge has been united in the 8th Congressional district — the new 7th — for at least 70 years. This was Tip O’Neill and Jack Kennedy’s district, with all of Cambridge at its core,” she said.

The redistricting will carve Cambridge in two — a central chunk being represented by U.S. Rep. Edward Markey as the 5th Congressional District and parts in North Cambridge and closer to the river being represented by U.S. Rep. Mike Capuano as the 7th Congressional.