AN ILLEGAL immigrant who committed a string of offences in the UK has reportedly been awarded £40,000 compensation after a judge ruled he was "unlawfully detained".

Hassan Massoum Ravandy was detained after being convicted of burglary, theft and drugs offences, as the Home Office pushed for deportation arguing his presence in the UK was "not conducive to the public good", reports the Daily Mail.

1 Judge Heather Bauncher ruled Ravandy should receive £40,000 Credit: Photoshot

A judge made the ruling after deciding the 46-year-old Iranian had been illegally detained for 512 days between March 2014 and August 2015.

MP Philip Hollobone told the Mail: "This is yet another crazy judicial ruling and further reason to reform human rights laws so that taxpayers’ money isn’t spent on compensation for people who don’t deserve it."

The paper reports that a court heard Ravandy had arrived in the UK in the back of a lorry in 2000 and applied for asylum claiming he feared persecution.

But, his claim was rejected amid suspicions he had lied about his brother dying at the hands of Hezbollah, with a tribunal deciding it was more likely he fled because he had been involved in illegal currency trading.

A deportation order was reportedly issued in 2002 but Ravandy remained in the UK for the next 15 years during which time he reportedly committed a string of offences.

MOST READ IN NEWS 'GRUESOME RAPE' Girl, 19, gang-raped by at least 11 MEN and thrown to death off building LOCK UP With 10m already under local lockdowns & tough new rules we ask - where's next? 'WORST NIGHTMARE' Newborn mauled to death by 'jealous' dog who escaped from pen, says uncle CLOSING TYNE Hundreds hit the Toon for last night out before lockdown & 10pm pub curfews TRAGIC DEATH Mum-of-13 who starred on TV's Extraordinary Pregnancies found hanged POT SHOT Pool cue thug caught on CCTV battering pub drinker for moving his white ball

Eventually authorities caught up with him and he was detained by the Home Office, who said detention was "reasonably necessary to effect deportation"

As Ravandy refused to return to Iran and authorities in Tehran failed to provide documentation he remained in detention.

The Home Office reportedly argued that the £55,000 compensation requested was "more than you would get for very serious personal injury damages".

But, Judge Heather Bauncher ruled Ravandy should receive £40,000.

We pay for your stories! Do you have a story for The Sun Online news team? Email us at tips@the-sun.co.uk or call 0207 782 4368