When Tris and Four are caught, she injects Four with another serum that works on Divergent and sends him to the Control Room to oversee the attack and sentences Tris to death.
After his arm gets shoot by Tris, he agrees to help them stop the simulation if the party will take him with them to Amity due to his fear that he will get killed because of his knowledge of computers controlling the simulations.