The Senate unanimously confirmed Mueller as FBI director on August 2, 2001, voting 98–0 in favor of his appointment.[34] He had previously served as acting deputy attorney general of the United States Department of Justice (DOJ) for several months before officially becoming the FBI director on September 4, 2001, just one week before the September 11 attacks on the World Trade Center.[6]