Former CIA Director David Petraeus has been put on probation and fined for leaking material to his mistress Paula Broadwell.
David Petraeus resigned from his post at the CIA in 2012 after it emerged he was having an affair with his biographer, Paula Broadwell.
The retired four-star general could have faced a year in prison, after his guilty plea two months ago.
David Petraeus led the 2007 troop surge in the Iraq war and served as commander of US and NATO forces in Afghanistan.
He reached a plea bargain with prosecutors after admitting to leaking sensitive material to Paula Broadwell while she was working on a book about him.
Prosecutors said that he gave her eight binders of classified material in 2011, which he had improperly kept from his time leading the war in Afghanistan.
In a federal court in Charlotte, North Carolina, David Petraeus was sentenced to two years of probation and ordered to pay a $100,000.
Prosecutors recommended the same length of probation, but a smaller fine of $40,000.
Judge David Kessler raised the fine to “reflect the seriousness of the offence”.
Appearing in court before the sentencing, David Petraeus apologized for his actions.