Iran's reformist President Hassan Rouhani has decisively won the country's presidential election, according to official results, fending off a challenge by principlist rival Ebrahim Raisi.
"Of some 41.2 million total votes cast, Rouhani got 23.5 ... and won the election," Rahmanifazli said in remarks carried live by state TV.
Raisi, Rouhani's closest rival, got 15.8 million votes, he added.
The election was seen by many as a verdict on Rouhani's policy of opening up Iran to the world and his efforts to rebuild its stagnant economy.
Rouhani swept into office four years ago on a promise to reduce Iran's international isolation.
Friday's poll was the first since he negotiated a historic deal with world powers in 2015 to curb the country's nuclear programme in exchange for sanctions relief.
Slow pace of change
While the nuclear deal was at the forefront of the election, the campaign was dominated by the issues of poverty and unemployment.
Rouhani has brought inflation down from around 40 percent when he took over in 2013, but prices are still rising by more than seven percent a year.