When was the 18th president of US elected?

U. S. Grant who became the 18th President was elected in November of 1868.