Bernie Sanders’ victory in Indiana’s Democratic primary Tuesday demonstrates his popularity with voters hasn’t faded, even as his path to the presidential nomination has narrowed.

Sanders led front-runner Hillary Clinton by 6 points, with 68 percent of precincts reporting, when networks declared him the winner. Exit polls had Sanders winning by 12 points, but they were based solely on interviews with voters on Election Day. Clinton narrowed the gap somewhat by dominating among people who voted early.

Indiana’s primary was favorable to Sanders in a number of ways. The state holds an open primary, which means voters unaffiliated with either party could participate. Sanders has struggled in closed primaries, where only registered Democrats could cast a ballot. Indiana is also a predominately white state, which may have helped Sanders, since Clinton has dominated with nonwhite voters in previous contests.

Indiana sends 83 pledged delegates and nine superdelegates to the Democratic convention this summer. The pledged delegates will be awarded to the candidates proportionally. The handful of polls conducted in Indiana last month suggested Clinton had a small lead.

Sanders said in a statement after the race was called that he expects more victories in the weeks ahead, though he understands that he has "an uphill climb to victory."

"The Clinton campaign thinks this campaign is over," he said. "They’re wrong. Maybe it’s over for the insiders and the party establishment, but the voters in Indiana had a different idea. The campaign wasn’t over for them. It isn’t over for the voters in West Virginia. It isn’t over for Democrats in Oregon, New Jersey and Kentucky. It isn’t over for voters in California and all the other states with contests still to come."

Sanders spent nearly $2 million on advertisements in Indiana, compared with nothing by Clinton, in the hopes of regaining some of the momentum he lost with last week's defeats in Pennsylvania, Connecticut, Maryland and Delaware. (He won Rhode Island.) Sanders’ fundraising has dropped substantially: His campaign took in $26 million in April, compared to more than $40 million in both February and March.

Both Democratic candidates visited the state repeatedly. Clinton toured factories to promote her proposals to revitalize American manufacturing. Her husband, former President Bill Clinton, and her daughter, Chelsea Clinton, also campaigned in state.

Sanders emphasized trade issues during rallies and town halls. For instance, he spoke at a union rally outside the state legislature, where workers were protesting United Technologies' plans to relocate two Indiana factories that employ over 2,000 workers to Mexico.

Sanders also visited student-heavy areas to drive turnout among younger voters, with whom he has dominated. While Clinton leads Sanders by more than 300 pledged delegates, he has suggested that he could still prevail at the convention by convincing superdelegates to switch their allegiances with the argument that he’d do better than Clinton in the general election.

“We are behind today,” Sanders told supporters at a rally at Purdue University in West Lafayette last month. “But you know what? Unusual things happen in politics. With your help, superdelegates may reach the conclusion that Bernie Sanders will be the strongest candidate against Donald Trump or any other candidate.”

Sanders was scheduled to hold two rallies in Kentucky on Tuesday afternoon, as he looks ahead to the rest of this month’s contests. While the remaining primary contests, including upcoming Oregon and West Virginia, are favorable to him, he faces a steep climb to catch Clinton with delegates.

Clinton, for her part, is speaking much more about Republican front-runner Donald Trump than Sanders to project an aura of inevitability.

Ryan Grim contributed reporting.

This article has been updated with voting results.