Watch Latin American Music Awards

Bryan Singer has closed a deal to return to direct “X-Men: Apocalypse” for 20th Century Fox.

He has been loosely attached for some time, but the deal is now official. Following the lawsuit charging sexual assault brought by Michael Egan, it was thought that Fox might part ways with the director. The lawsuit has since been withdrawn, and both sides have come to an agreement that Singer will return to direct the next installment.

Simon Kinberg penned the script.

Singer has described the upcoming X-Men film, which is expected to feature all cast members including Michael Fassbender, Jennifer Lawrence and James McAvoy, as the most destructive movie in the franchise.

“‘Apocalypse’ will have more of the mass destruction that ‘X-Men’ films, to date, have not relied upon,” he recently said. “There’s definitely now a character and a story that allow room for that kind of spectacle.”

Singer also suggested that “Apocalypse,” set in the 1980s, could feature younger versions of familiar characters.

“I call these movies in-between-quels. It’s a mind-f**k sometimes in terms of where things fall in the timeline.”

Fox will release the film on May 27, 2016.

The most recent “X-Men: Days of Future Past,” co-starring Hugh Jackman, has earned a monstrous $745 million worldwide at the box office.

Singer is repped by WME.