The film is the sequel to the 2015 film “The maze runner 2: The scorch trials” and the final installment in The Maze Runner film series. It was directed by Wes Ball.
Thomas, Newt and Frypan are the last of the free"Gladers" immune to the Flare virus that has ravaged the world's population. They and the Right Arm resistance conduct an operation and retrieve eother Immunes from a carriage of a train operated by WCKD, an organization responsible for capturing and experimenting on immune children. They discover that Minho, their remaining Glader friend whom WCKD had captured, was on a different carriage of the train, which is headed to the "Last City",WCKD's base of operations. Against the orders of Vince, the leader of the Right Arm, the three leave their camp to rescue Minho, who is being tortured by WCKD in the hope of developing a cure for the virus. Heading for the Last City, the group is attacked by Cranks, humans infected with the Flare. However, they are saved by Jorge and Brenda, who join them.
The group makes it to the wall of the Last City, which protects the city from Cranks. Outside the wall, people are rallying in protest to be let into the city. When WCKD opens fire at the protesters, the group is captured by a crew wearing gas masks and taken to a hideout. One of the members is revealed to be Gally, who survived Minho’s attack. Gally takes them to see Lawrence, a rebellion leader for those outside the walls, who helps Thomas, Newt and Gally enter the Last City through a secret entrance. Gally leads Thomas and Newt through to the city and, spotting Teresa, tells Thomas that he can get them into WCKD headquarters. Newt then confides to Thomas that he is infected. Promising to cure him, Thomas and Gally capture Teresa.
Disguised as WCKD soldiers, Thomas, Newt and Gally escort Teresa inside WCKD headquarters and toward the location of the Immunes. Gally looks after the Immune children and stays to find a serum that slows the Flare. Thomas, Teresa and Newt go to find Minho, but are discovered and chased by Janson. Teresa lets them escape to find Minho before rushing to do a blood test on Thomas's blood, which she obtained when she was removing trackers from the Gladers. After delivering the Immune children and the serum to Brenda, Gally returns to WCKD headquarters to find Thomas. Brenda is forced to flee with the Immune children to avoid capture. Thomas and Newt reunite with Minho in the medical wing. Teresa discovers that Thomas's blood can cure the Flare. She shares her discovery with WCKD's leader, Ava Paige, both of whom agree that they must find Thomas. Brenda and the Immune children escape WCKD with Frypan's help.
Meanwhile, Lawrence rallies his rebels outside the city before he blows a hole in the city wall and sacrifices himself to allow his allies and the infected people to storm the city. Gally saves Thomas, Newt, and Minho from WCKD soldiers. While Minho and Gally go to get the serum from Brenda, Thomasgets a pendant from Newt before Newt passes out. Teresa transmits her voice throughout the city and tells Thomas that his blood can save Newt if only he will return to WCKD. Newt, nearly consumed by the Flare, regains consciousness, attacks Thomas, and begs Thomas to kill him. When Thomas refuses, Newt, left with no other option, stabs himself in the chest. Thomas returns to the WCKD facility and confronts Paige. While she talks with him, Janson, having caught the Flare, kills her and uses a sedative on Thomas. Thomas wakes up inside the facility. Teresa successfully removes some of his blood. She hears that Janson is interested only in curing himself and others who he deems worthy. Teresa attacks Janson and frees Thomas, who fights with Janson. The fight ends when Thomas releases two Cranks, who kill Janson. With the building on fire, Thomas and Teresa escape to the roof. The rest of the team arrives on a berg. Thomas climbs aboard, but Teresa dies when the platform gives way as the building caves in.
The group reunites with the rest of the Immunes and the Right Arm and escapes to a safe haven, where the remaining population can live in safety. There, Thomas discovers that the pendant that Newt gave him had a note in it. Still traumatized by his friends' deaths, he reads the note in which Newt tells him to look after everyone before he thanks Thomas for being his friend.