The UK Government paid out more than 18 million pounds in compensation for unlawful immigration detention in four years.
The figures were obtained through a Freedom of Information request by the Victoria Derbyshire programme.
Immigration detention centres hold people the government wants to deport.
Conservative MP and Home Affairs Committee member Tim Loughton told the BBC: “These are not prisons, they are places purely to hold people who might be at risk of absconding between getting hold of them and putting them on a plane out of the country.
“I think many taxpayers would be greatly annoyed and offended that their money is going not only to look after some of these people who should not be in these detention centres, but we’re actually having to pay out compensation because the courts have deemed that they’ve been detained wrongly as well.”
The biggest pay out by the Home Office was £155,000.