The Tenure of Office Act was a United States federal law (in force from 1867 to 1887) that was intended to restrict the power of the president to remove certain office-holders without the approval of the Senate. The law was enacted on March 2, 1867, over the veto of President Andrew Johnson. It purported to deny the president the power to remove any executive officer who had been appointed by the president with the advice and consent of the Senate, unless the Senate approved the removal during the next full session of Congress.