Iran's President Hassan Rouhani has won a second term in office.
Out of more than 40 million votes cast, he received 57%, or close to 23m votes in total.
President Rouhani, a moderate who agreed a deal with world powers to limit Iran's nuclear programme, will thus avoid a second-round run-off.
His main challenger has complained about alleged voting irregularities.
Ebrahim Raisi, a conservative cleric, accused supporters of President Rouhani of hundreds of acts of propaganda at voting booths - banned under electoral law.
State TV congratulated Mr Rouhani on his victory. Interior Minister Abdul Reza Rahmani Fazli said Mr Raisi received 38.5%, or 15.7m votes - not enough to take the election to a second round.