South Korean voters have overwhelmingly chosen the liberal candidate Moon Jae-in as their next president, an exit poll suggests.
It put Mr Moon on 41.4%, with his nearest challenger, the conservative Hong Joon-Pyo, on 23.3%.
Mr Moon favours greater dialogue with North Korea, in a change with current South Korean policy.
The early election was called after a corruption scandal led to the impeachment of the former president.