Teenage refugee Abrahim Rahimi will not be deported back to Afghanistan, just days after his friend Amin Buratee was also allowed to stay in the country.
Amin Buratee, Abrahim's friend, also won the right to stay this week
Abrahim, who has lived in Gillingham for the last two years, was due to be sent back to Kabul after his asylum claim was refused.
His lawyers have now been told he can stay in the country to appeal.
Abrahim came to the UK after his father, a general in the communist-era regime, was killed by the Taleban.
He also lost a brother and an uncle at the hands of the regime, which was deposed after a US-led invasion in 2001.
Abrahim has been held at a detention centre in Glasgow after being detained in the police raid on Amin's Whitstable home. He will be released on Monday.
Friends and supporters say he feared he too could face death if he returned to Afghanistan.
In a statement received by the BBC, his cousin said: "My cousin fears for his life if he returns to Kabul, and from speaking to my family there I know that he speaks the truth."
Abrahim is a Shiite Muslim and a member of the Hazara tribe, members of which are still being attacked by the Taleban.
Supporters said his identity would not be able to be kept secret because the Taleban were adept at bribing people for information.
The decision to allow Amin Buratee to stay in the country for his A-level exams came after Canterbury High School classmates staged a protest.
Amin had also arrived in the UK in 2002 after members of his family, including his father, had been killed.
"It was really frightening, because I didn't know what was going to happen," he told BBC South East Today on Wednesday after being released from a facility in Dover.
He said then he wanted to say thanks to all the people who had supported him, and felt "fantastic" about being allowed to stay to finish exams.