Under Republican congressional leadership, the Thirteenth Amendment to the United States Constitution—which banned slavery in the United States—passed the Senate in 1864 and the House in 1865; it was ratified in December 1865. In 1865, the Confederacy surrendered, ending the Civil War. Lincoln was assassinated in April 1865; following his death, Andrew Johnson took office as President of the United States.