The government is paying more than £4m each year in compensation to people who were held unlawfully in immigration detention centres, figures show.
The centres hold people the government is trying to deport, including failed asylum seekers and foreign prisoners.
A BBC Freedom of Information request found the government paid £4m in 2014-15, and between £4-5m in each of the previous three years, totalling £18m.