Born in Philadelphia, Roberts graduated from the University of Pennsylvania Law School and pursued a legal career. After working as a district attorney in Philadelphia, he was appointed by President Calvin Coolidge to investigate the Teapot Dome scandal. After the death of Associate Justice Edward Terry Sanford in March 1930, President Hoover nominated John J. Parker to fill the vacancy on the court. The Senate rejected Parker and Hoover quickly nominated Roberts as his second choice for the vacancy. Roberts was easily confirmed and took his position on the court in May 1930.