Polls are now closed in Arizona, but the line at the Gilbert library is still out the door. pic.twitter.com/KbNTj6QCEd

Arizona residents faced hours-long lines to cast their ballots in Tuesday night's primary elections. Even after polls closed at 7 p.m., many voters were still stranded in queues.

It got so bad that people began to bring chairs to sit in, The Associated Press notes. Some even ordered dinner:

A lot of pizza delivered to people in line to #vote tonight #ArizonaPrimary pic.twitter.com/Warlx3rWbb — Brian Earhart (@BrianEarhart) March 23, 2016

@12News This lovely gent, Christian, bought pizza for his line buddies. Faith in humanity restored. #AZPrimary pic.twitter.com/4wu53NIKee — Shelly Patreaux (@ShellPatreaux) March 23, 2016

According to the AP, many people showed up to vote even before polls opened at 6.am. The last vote didn't come in until after midnight, the Arizona Republic reported.

The Republic said that Arizona has cut the number of voting sites by over two-thirds in order to save money. Plus, according to KPNX, voter turnout was also slightly higher than usual.

Democratic presidential candidate Sen. Bernie Sanders (I-Vt.) called the long lines "a national disgrace."

It’s a national disgrace that people have to wait hours to cast a vote in any election. — Bernie Sanders (@BernieSanders) March 23, 2016

Sanders encouraged voters to stick it out, but some people were deterred.

“I don’t think it should take this much effort just to vote,” one voter told the AP. “With the weather so hot and so many senior people like me, this is getting dangerous to stand in these lines for so long in the sun.”

Hillary Clinton and Donald Trump were declared the primaries' winners late Tuesday -- even as hordes of people waited to vote.

CORRECTION: A previous version of this post reported that Arizona only had 60 polling places. 60 was the number of voting sites in Maricopa County.