Upvote:8
If I've read your post correctly, your friend has been denied visas repeatedly, to the point where he was deported, and, it seems, he's been living in the UK illegally.
He has the worst possible immigration record and, I'd estimate, exactly zero chance of ever getting a visa.
He needs professional help from an expert in UK immigration, not comments from a bunch of strangers on the internet. This will will be expensive, and carries only limited chance of success.