Fox has signed “Loving” director Jeff Nichols to write and direct a remake of 1988’s science-fiction thriller “Alien Nation.”

Nichols is re-teaming with “Loving” producers Brian Kavanaugh-Jones and Sara Greene for the new “Alien Nation” movie. The deal comes two days ahead of “Loving’s” North American premiere on Sunday at the Toronto Intl. Film Festival.

The original 1988 “Alien Nation” was set in Los Angeles after 300,000 members of an enslaved alien race — The Newcomers — landed in the Mojave Desert. James Caan starred as police officer partnered with an alien, played by Mandy Patinkin.

“Alien Nation,” produced by Gale Anne Hurd and Richard Kobritz, was a moderate success with a $25 million gross. Fox launched a spinoff TV series, starring Gary Graham and Eric Pierpoint, which ran for 22 episodes.

“Loving,” which premiered at the Cannes Film Festival, stars Ruth Negga and Joel Edgerton as Mildred and Richard Loving, who were jailed because interracial marriage was against the law in Virginia. Focus will open “Loving” on Nov. 4.

Nichols’ directing credits include “Midnight Special,” “Take Shelter” and “Mud.” He’s repped by CAA. The news was first reported by Deadline Hollywood.