Comey was the U.S. Attorney for the Southern District of New York from January 2002 to December 2003, and later, the United States Deputy Attorney General, from December 2003 to August 2005. As Deputy Attorney General, Comey was the second-highest-ranking official in the United States Department of Justice (DOJ), and ran its day-to-day operations.