Afghans on Saturday voted to elect a new president who would replace Hamid Karzai, steering the country as U.S.-led forces withdraw, foreign aid declines and the Taliban plot a comeback.

The Taliban launched hundreds of scattered attacks around the country, but none disrupted the vote in major population centers by the time polls closed at 4 p.m. Preliminary election results are slated to be released on July 2.