Former Virginia governor Bob McDonnell and his wife, Maureen, have been released on their own recognizance in their federal corruption case.

They pleaded not guilty to the federal corruption charges in court Friday morning.

The judge allowed the release, but also ordered the McDonnells not to leave the country.

The former Republican governor and his wife were indicted on 14 counts Tuesday after a lengthy federal investigation of his relationship with a former CEO of a dietary supplement maker.

Federal prosecutors allege the McDonnells accepted more than $165,000 worth of loans and gifts from Jonnie Williams, the former head of Star Scientific, Inc.

Prosecutors say that in return, the McDonnells improperly helped Williams promote his company's products.

McDonnell has denied criminal wrongdoing.