Abraham Lincoln was the first president to wear a beard while in office.