"The Last Temptation of Barry Allen" is a two-part story comprising the seventh and eighth episodes of the sixth season of the American television series The Flash, based on the DC Comics character Barry Allen / Flash, a crime scene investigator who gains superhuman speed, which he uses to fight criminals, including others who have also gained superhuman abilities. The series is set in the Arrowverse, sharing continuity with the other television series of the universe, and is a spin-off of Arrow. The first part was written by Jonathan Butler and Gabriel Garza, and directed by Chad Lowe. Part two was written by Kristen Kim and Joshua V. Gilbert, and directed by Michael Nankin.