The Supreme Court has overturned the conviction of former Virginia Gov. Bob McDonnell on public corruption charges, reversing a previous ruling and paving the way for a retrial.

The court’s decision was unanimous.

Gov. McDonnell and his wife Maureen were convicted of public corruption in 2014 for accepting gifts from a donor for whom the McDonnells promoted a dietary supplement.

McDonnell was sentenced to serve two years in prison, but the former governor has been free on bond as he awaits appeal. His wife’s appeal is still pending and could be affected by the Supreme Court’s decision.

In a statement released after the ruling, an attorney for Maureen said they are “extremely gratified” by the Court’s decision, which they said should require that her conviction be overturned as well.

“This decision applies no less to our client Maureen McDonnell and requires that her conviction immediately be tossed out as well, which we are confident the prosecutors must agree with,” attorney William A. Burck said in a statement. “Mrs. McDonnell, like her husband, was wrongfully convicted.”

Get our Politics Newsletter. The headlines out of Washington never seem to slow. Subscribe to The D.C. Brief to make sense of what matters most. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.