NEW YORK - It was a big night for the Democratic party in New York and in Washington.

Democrats won all the statewide races.

They also regained control of the State Senate and the House of Representatives.

In the governor's race, Governor Andrew Cuomo was easily re-elected to a third term.

With nearly all precincts reporting, Cuomo took 59 percent of the vote.

Republican challenger Marc Molinaro got nearly 37 percent.

In his victory speech, the governor did not mention Molinaro, but took aim at President Donald Trump instead.

"Today’s election made clear that New York is not buying what President Trump is selling. We know his type too well. The President has defrauded this nation two years ago when said he was for the middle class and then he turned around the next day and gave a tax break to billionaires," Cuomo said.

Molinaro says he called Cuomo to concede and congratulate him.

He's hoping the governor will help unite the state, now that the election is over.

"I would just say with great compassion and respect, I challenge Governor Cuomo to work with all of those New Yorkers who feel like they're on the outside, looking in. And I know that as county executive of this great county, I'm going to spend the next year-and-a-half doing the same thing," Molinaro said.

In a major power shift, Democrats took control of the closely divided state senate Tuesday night by picking up as many as eight seats statewide.

In Brooklyn, Democrat Andrew Gounardes was holding on to a slim lead in his race to unseat longtime Republican Senator Marty Golden. Gounardes led by about 1,100 votes with 95 percent of scanners reported. Golden has not conceded.

"We are not finished, are going to take this to the finish line," Golden told supporters.

Meanwhile, Democrats claimed victory in seven other seats that were previously held by Republicans, including four on Long Island. State Senator Andrea Stewart-Cousins of Westchester is now poised to become senate majority leader, the first female to lead a legislative majority in Albany.

Democrat Letitia James won the race for State Attorney General.

She will be the first African American woman to hold that office in New York.

James pulled in nearly 62 percent of the vote.

Republican Keith Wofford trailed with 36 percent.

At her Election Night party, James promised to root out corruption and work to hold President Trump accountable.

The win means James must now give up her seat as the city's Public Advocate.

Mayor Bill de Blasio must call a special election in January, and that would take place within 45 days.

In the interim, City Council Speaker Corey Johnson would assume the role until the special election happens.

And in the race for State Comptroller, Tom DiNapoli was able to hold off his Republican opponent to win a third term in office.

DiNapoli received more than 3.7 million votes, roughly 67 percent of the total.

Jonathan Trichter took in nearly 32 percent.

Alexandria Ocasio-Cortez is now the youngest woman ever elected to Congress.

The 29-year-old defeated Republican candidate Anthony Pappas with 78 percent of the vote.

She will represent the 14th Congressional District which covers Queens and the Bronx.

"When we advocate and champion the causes of our neighbors and our economic dignity and come up with an innovative and ambitious plan for our future there is no state beyond our grasp and no community beyond victory," Ocasio-Cortez said.

Back in June, Ocasio-Cortez shocked the political establishment by beating Joe Crowley in the Democratic primary. 

Crowley had been one of the highest-ranking Democrats in Washington.

As expected, Senator Kirsten Gillibrand easily won re-election.

With 98 percent of precincts reporting, Gillibrand has the lion's share of the vote with nearly 67 percent.

Her Republican challenger Chele Farley got 33 percent.

Gillibrand has served as New York's junior Senator since 2009, when she was appointed to replace Hillary Clinton.

She won a special election to keep her seat in 2010, and was re-elected in 2012.

Elsewhere in New York, embattled Republican Congressman Chris Collins barely won re-election in the 27th District.

He beat Democrat Nate McMurray by just one percentage point.

Collins had briefly suspended his campaign this summer after being charged with crimes related to insider trading.

Another tight race was in the 19th Congressional District.

Democratic newcomer Antonio Delgado beat incumbent Republican John Faso with more than 49 percent percent of the vote.

Across the river in New Jersey, Democratic Senator Bob Menendez was the victor over his GOP challenger Bob Hugin.

Menendez's re-election was far from guaranteed after he was acquitted on corruption charges last year.

And the Connecticut governor's race is still too close to call.

The latest numbers show Democrat Ned Lamont leading Republican Bob Stefanowski by fewer than 3,000 votes.