What was the reason for Congress to impeach president Andrew Jackson?

Congress wanted Johnson impeached because he refused to cooperate or compromise over black rights and the reconstruction of state governments in the South. Congress was comprised of many Republicans which was the complete opposite of what Johnson wanted. The Republican's tried to pass many bills such as the Civil Rights Bill which Johnson vetoed. They realised he wasn't doing anything they wanted and when he removed Edwin M. Stanton (who was a republican spy in office) Congress tried to impeach him based on the fact that he went against the newly established Tenure of Office Act. They failed to do so in the long run.