Answer:
The black codes ended because President Abraham Lincoln was shot. He died on April 15, 1865, and Vice President Andrew Johnson assumed the presidency. The task of reuniting the nation fell on his shoulders. A Southerner, Johnson favored readmitting the Southern states as quickly as possible into the Union. He appointed military governors who held complete power in the former Confederate states until new civilian governments could be organized.
Explanation: