A Florida woman who claimed self-defense after prosecutors say she fired a gun at her estranged husband and his two sons will be released from prison as part of a plea agreement.

Marissa Alexander was sentenced on Tuesday to the 1,095 days she has already served in jail after pleading guilty to three counts of aggravated assault with a deadly weapon for the 2010 shooting.

She also received two years of house arrest.

The 34-year-old faced 60 years if convicted at trial because of Florida's minimum-mandatory-sentencing law pertaining to firearm use.

The jury at her first trial found her guilty after deliberating for 12 minutes.

The verdict was thrown out after a judge ruled the trial court incorrectly required Alexander to prove she was abused by her husband.