Johnson defied the Tenure of Office Act, because he wanted to remove officials from that were trying to push for Reconstruction. However, the Tenure of Office Act states that, without Senate approval, a President cannot remove an official. This led to Johnson's impeachment trial.
hope this helps