Tris and others go back to Dauntless headquarters to shut down the program that's controlling the Dauntless members. Her dad is killed. Tris reaches the control room and finds Four there. They fight and Tris pulls a gun on him. But she can't kill him and, ultimately, he can't kill her. They disable the program and take the hard drive. They jump a train and kiss each other.