When Congress was in recess in September 1833, President Andrew Jackson appointed Taney as U.S. secretary of the Treasury. Nine months later, after disagreements over banking issues, the U.S. Senate rejected his appointment and Taney was out of office. Jackson then appointed Taney to replace Justice Gabriel Duvall but a Senate vote was postponed. It served to Taney’s advantage, however, because when Chief Justice John Marshall died, President Jackson then nominated Taney to fill the position of chief justice. The Senate confirmed Taney by a 29–15 vote.