FILE - In this Oct. 1, 2018 file photo, Boston City Councilor Ayanna Pressley speaks at a rally at City Hall in Boston. On Nov. 6, Pressley became Massachusetts' first black woman elected to the U.S. House of Representatives. (AP Photo/Mary Schwalm, File)
FILE - In this Oct. 1, 2018 file photo, Boston City Councilor Ayanna Pressley speaks at a rally at City Hall in Boston. On Nov. 6, Pressley became Massachusetts' first black woman elected to the U.S. House of Representatives. (AP Photo/Mary Schwalm, File) Credit: Mary Schwalm

It’s official: Ayanna Pressley has completed her quest to become Massachusetts’ first black woman elected to the U.S. House of Representatives.

The Democrat sailed through Tuesday’s general election unopposed, two months after unseating 10-term Rep. Michael Capuano in a national political stunner in the state primary.

With no Republican in the race in the heavily Democratic district, her September upset victory had all but assured Pressley the keys to the office, with only the remote possibility of a write-in campaign to potentially stop her. That unlikely scenario behind her, she’ll now represent the 7th Congressional District – the first in Massachusetts where minorities make up a majority of the voting population.

“It is hard to believe that in the 230-year history of our delegation, there’s never been a person of color,” she said on Matter of Fact with Soledad O’Brien.

(Although that’s true of the House, Republican Sen. Edward Brooke of Massachusetts, who took office in 1967, was the first black politician to be elected by popular vote after the 17th Amendment was ratified in 1913.)

Pressley, 44, is also the first African-American to serve on the Boston City Council.

Endorsed last month by former President Barack Obama, she got a big early boost from fellow congressional upstart Alexandria Ocasio-Cortez, who similarly knocked off veteran Rep. Joe Crowley of New York in June.

Both rode a rising wave of pro-woman sentiment to Washington as the party embraced diversity and liberal politics as the recipe for success in the Trump era.

“With her victory tonight, Ayanna Pressley has not only made history as the first black woman ever elected to represent Massachusetts in the U.S. House of Representatives, she’s ensured that Democrats have the voice of a young, black progressive woman helping lead the fight for inclusive populist reforms,” the political action committee Democracy for America said Tuesday night in a statement.