CIA Director David Petraeus resigned Friday, citing an extramarital affair and "extremely poor judgement."
In a letter released to the CIA work force on Friday afternoon, Petraeus disclosed the affair, and wrote: "Such behavior is unacceptable, both as a husband and as the leader of an organization such as ours."
President Obama "graciously accepted my resignation," he wrote.
Petraeus was appointed CIA director in April 2011, replacing Leon Panetta, who moved to the Pentagon to become defense secretary.
Petraeus served as commander of the war in Afghanistan in 2010-2011. Because of that role, he was seen as bringing a “customer’s eye” to the intelligence job. Before that, he served as commander of the U.S. Central Command and as the commanding general of U.S. forces in Iraq.