NEW YORK (AP) — New York Democrat Carolyn Maloney’s three-decade career in the U.S. House is coming to a close after she lost Tuesday to her longtime colleague-turned-rival Jerry Nadler, a Democratic congressman who has served just as long as she has.

Nadler and Maloney each chair powerful committees and had spent 30 years representing Manhattan’s Upper West Side and Upper East Side, respectively. But they ended up in the same race after new redistricting maps merged much of their longtime congressional districts.

In other races Tuesday, the redrawn maps in the second-largest blue state in the country were threatening the political career of a first-term progressive.

There was an added degree of uncertainty to how New York’s congressional primary contests would shake out as voter turnout was expected to be low. It was the second primary election day in New York this summer after statewide and state assembly primaries were held two months ago. New York voters are not accustomed to casting primary ballots this late in the summer — and certainly not used to casting them twice — and many were finding their longtime district lines had shifted, adding to confusion.

In Florida races, an incumbent Republican narrowly defeated a far-right provocateur. Meanwhile, U.S. Rep. Matt Gaetz, a conservative firebrand, won his primary despite having the with the specter of a federal investigation looming over him.

Some of the top elections:

END OF AN ERA

The race between Maloney, 76, and Nadler, 75, became contentious as they sparred to represent a new district, New York’s 12th District, spanning Central Park and linking two iconic New York City neighborhoods whose residents claim very distinct identities. The two stopped speaking after deciding to run against each other, Nadler said, and the campaign became barbed, with Maloney questioning his mental acuity.

Nadler, who was endorsed by Senate Majority Leader Chuck Schumer, has talked up his role overseeing Donald Trump’s impeachments while serving as chair of the House Judiciary Committee. Maloney has touted her own check on the former president while serving as chair of the powerful House Oversight Committee and positioned herself as a feminist champion.

Challenging them both was 38-year-old lawyer Suraj Patel, who argued it was time for a new face in Congress.

A CROWDED FIELD FOR AN OPEN SEAT

With Nadler and Maloney running in the district immediately north, a congressional seat covering southern Manhattan, including Wall Street, and Brooklyn is a rare open contest in one of the most liberal and influential areas of the country.

New York’s 10th District has attracted a bevy of progressive candidates, including an incumbent congressman from the New York City suburbs, Mondaire Jones, who moved to the area to run. Jones, one of the first openly gay Black members of Congress, said it’s important to have an LGBTQ representative in the district that includes the West Village and the Stonewall Inn, the site of riots that gave birth to the gay rights movement.

Daniel Goldman, a former federal prosecutor who served as counsel to House Democrats in the first impeachment inquiry against Trump, is among his leading challengers.

Other candidates include Assembly member Yuh-Line Niou, New York City Councilwoman Carlina Rivera and former Rep. Elizabeth Holtzman, who last served in Congress in 1981.

TOUGH FIGHT FOR HOUSE DEMOCRATS’ CAMPAIGN CHIEF

New York’s new 17th District, home to idyllic towns along the historic Hudson River Valley, has turned into a tough political fight for Sean Patrick Maloney, the chair of the House Democrats’ campaign arm.

Maloney, a Democrat who became New York’s first openly gay congressman when he was elected a decade ago, is facing a primary challenge from state Sen. Alessandra Biaggi.

Biaggi, a 36-year-old progressive endorsed by Rep. Alexandria Ocasio-Cortez, is a granddaughter of former Bronx congressman Mario Biaggi. She has sought to portray Maloney as out of touch and part of the establishment.

Maloney, who has the backing of former President Bill Clinton, has campaigned on Democrats’ recent legislative wins in Congress and warns the seat could fall to Republicans in November if the Democratic nominee is too liberal.

REPUBLICANS VIE TO REPLACE CONGRESSMAN AFTER BACKLASH

A Republican race in western New York has become a heated contest to replace GOP Rep. Chris Jacobs.

Jacobs decided not to seek reelection after facing backlash from his own party for voicing support for an assault weapons ban following a racist mass shooting in his hometown of Buffalo in May.

Tuesday’s race in New York’s redrawn 23rd District features New York’s Republican Party chair, Nick Langworthy, and Buffalo businessman Carl Paladino.

Paladino, who unsuccessfully ran for governor in 2010, has a long history of inflammatory and offensive remarks, including recent comments that praised Adolf Hitler and circulated conspiracy theories around mass shootings.

SPECIAL ELECTIONS

New Yorkers are not only casting votes in primary races Tuesday but are also electing two new House members to fill vacancies for the rest of the year.

One of the special elections will be a battleground race in southern and central New York to replace Democrat Antonio Delgado, who became New York’s lieutenant governor. Republican Marc Molinaro and Democrat Pat Ryan are vying for the seat in what is currently New York’s 19th Congressional District.

In western New York, Democrat Max Della Pia and Republican Joe Sempolinski are running to serve out the rest of the year in what is currently New York’s 23rd District. They are competing in a GOP-favored seat to replace Republican Rep. Tom Reed, who resigned in May, a year after he was accused of sexual misconduct.