French ex-president Nicolas Sarkozy was found guilty of corruption on Monday.

The judge sentenced him to three years in prison, two of which are suspended.

The 65-year-old politician does not have to go to jail, but is placed under house arrest for a year.

Justice demanded four years in prison, half of which was conditional.

Sarkozy is said to have bribed a judge along with his lawyer Thierry Herzog.

They are said to have promised him a job in Monaco in exchange for information about an investigation into the finances of his campaign.

The former president contradicts the accusation.

Sarkozy was President of France from 2007 to 2012.

It is the first time that a former French head of state has had to answer in person in court for corruption.

Prosecutors said Sarkozy and his attorney wanted to bribe Judge Gilbert Azibert in exchange for information about an investigation into payments Sarkozy received during his 2007 presidential campaign.

That money would come from the late heiress Liliane Bettencourt of the L'Oréal empire.

In that affair, Sarkozy has been acquitted, but there are some other cases.