According to his letter of resignation, Petraeus asked President Barack Obama on Thursday to allow him to resign, and on Friday the president accepted.
Petraeus said in a statement that he had shown "extremely poor judgment" in having an affair.
(Copyright 2012 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)