Hillary Clinton was declared the official winner of the Iowa Democratic caucuses by the Associated Press on Tuesday morning, defeating Bernie Sanders by a thin margin.

The former secretary of state received 700.59 state delegate equivalents, while the senator nabbed 696.82 delegates and former Gov. Martin O’Malley was awarded 7.61, according to the Iowa Democratic Party. O’Malley suspended his campaign on Monday night following the turnout in Iowa.

This means Clinton is set to receive 23 of Iowa’s delegates and Sanders will earn 21 delegates. The candidates remained deadlocked last night following surprisingly strong support for Sanders in a state where Clinton was expected to have the edge.

Clinton’s campaign announced early Tuesday that she’d won with “no uncertainty.” She had come in third place in the 2008 caucuses.

“Hillary Clinton has won the Iowa Caucus. After thorough reporting — and analysis — of results, there is no uncertainty and Secretary Clinton has clearly won the most national and state delegates,” her campaign said in a statement. “Statistically, there is no outstanding information that could change the results and no way that Senator Sanders can overcome Secretary Clinton’s advantage.”

Clinton — like Sanders — practically declared victory in a speech to supporters on Tuesday evening in Des Moines.

“As I stand here, breathing a big sigh of relief, thank you,” Clinton told the crowd, alongside her husband, former President Bill Clinton.

Meanwhile, IDP Chair Andy McGuire said Tuesday that “the results tonight are the closest in Iowa Democratic caucus history.” The Party announced that it would not recount the close results.

Sen. Ted Cruz defeated Donald Trump at the Iowa Republican caucuses. Cruz received 28% of the GOP support, versus 24% for Trump and 23% for Rubio.