The Tenure of Office Act was a United States federal law that denied the President the power to remove from office anyone who had been appointed by a past President without the advice and consent of the Senate. The law was enacted in 1867 and was in force until 1887. This law was enacted over the veto of the United States President Andrew Johnson.