Well he is a terrorist supporter/sympathiser, and he wanted to turn Egypt ino another islamic state where the muslim brotherhood dominates every aspect of egyt from military to economy to education etc. Egyptians seemed to have noticed this and immediately gathered to get rid of him before it becomes too late when he would have cemented his power. He was also sponsoring terror groups like Hamas and syrian rebels. So no surprise he got sentenced.
However, i think the Egyptian government should try and make peace with Muslim brotherhood(even though i know they are islamic radicals), and bring them into some sort of unity government/society, so Egypt can have peace. The only other option is to eradicate them competely(as quickly as possible, so it doesnt affect the country economically too much), so they dont pose any threat to the Egyptian state anymore. Hope Sisi will make the right choice and put Egypt back on track.