According to the prosecutor general's office, el-Shamy was being set free Tuesday due to "health conditions." The 26-year-old undertook a hunger strike in January to protest his imprisonment.
In May, his doctor projected that el-Shamy had lost a third of his body weight, that his organs could fail, and he would die imminently.
El-Shamy wrote a letter from Tora prison on May 6, relaying that prison authorities were increasingly concerned about his hunger strike and were trying through alternate expressions of compassion and coercion to convince him to eat.
After two visits from prison officials on May 5 and 6, he wrote "Although I do not know the reasons behind these two incidents, they are indications that victory is imminent. I may not have thought that things would come to a point of stubborn defiance between one individual and an entire regime which is afraid of him and are doing all they can to dissuade him."