ATHENS — Greeks are hurting and angry after a decade of brutal austerity, and Prime Minister Alexis Tsipras paid the price by losing control over the government in Sunday’s national elections.

After the polls closed at 7 p.m. local time Mr. Tsipras concede that his leftist Syriza party had lost to the center-right New Democracy party, which promised tax cuts and new prosperity.

[Greek election results: Prime minister Alexis Tsipras concedes defeat as center right surges.]

Mr. Tsipras’s supporters had argued that after years of austerity, he has lifted the country out of the depths of the financial crisis and the economic picture has improved. But critics said his tenure as prime minister had been disastrous for entrepreneurship, crushing the middle class and eroding the rule of law.

A second crisis that loomed large in the election was the thousands of migrants languishing in tent camps in Greece while they await the processing of their asylum applications.