Andrew Johnson became president on April 15, 1865, ascending to the office following the assassination of his presidential predecessor Abraham Lincoln. While Lincoln had been a Republican, Johnson, his vice president, was a Democrat, the two of them having run on a unity ticket in the 1864 United States presidential election.