President Obama congratulated Afghan President Hamid Karzai on his re-election after his opponent Abdullah Abdullah withdrew from the race. The two candidates were to face each other November 7 in a run-off after no presidential candidate received a majority of the vote in an August contest.

“Although the process was messy, I’m pleased to say that the final outcome was determined in accordance with Afghan law, which I think is very important, not only for the international community that has so much invested in Afghan success, but most importantly, is important for the Afghan people that the results were in accordance with and followed the rules laid down by the Afghan constitution,” Obama said.

Obama said the American people are committed to helping Afghanistan achieve prosperity and security, but that the Afghan government must play its part to fight corruption and strengthen governance. A text of the president’s remarks is available on America.gov.