A man has been sent to Broadmoor, a high security mental health hospital, under the mental health act.
30-year-old Karl Addo attacked and decapitated 23-year-old student Sergio Marquez last July. He had suffered from mental illness for several years.
Mr Maquez's family said he had only wanted to work, learn and help others. They said he was impossible to replace.
His killer also received a prison sentence to run concurrently, of life imprisonment. He must serve a minimum of 6.5 years.
More top news
The latest weather for the east with Philippa
The latest weather for the west with Philippa
Police are investigating the death of a man who was crushed to death by a vintage tram he was working on in Hampshire.