Presidential elections were held in El Salvador on 4 December 1864. Francisco Dueñas ran virtually unopposed and won the vast majority of votes. Votes against him went to his close allies such as Rafael Campo and Manuel Gallardo.