Ryan Gosling to star in 'La La Land' director's Neil Armstrong biopic

Ryan Gosling is going from the city of stars to the stars themselves.

The actor has closed a deal to reteam with his La La Land director Damien Chazelle for First Man, Universal Pictures' biopic centering onNeil Armstrong, the astronaut who became the first man to set foot on the moon.

Gosling has been orbiting the project since late 2015 but it's only in December that a deal was reached.

The project adapts the book First Man: A Life of Neil A. Armstrong by James Hansen and has a script by Josh Singer, the Oscar-winning co-writer of Spotlight.

Armstrong was a hotshot Navy bombing pilot during World War II then a test pilot in the 1950 and 1960s. The movie will aim to tell the story of NASA's mission to land a man on the moon, specifically the years 1961 to 1969, according to studio sources. The goal is to explore the sacrifices and the cost—on Armstrong and on the nation—of one of the most dangerous missions in history.

Marty Bowen and Wyck Godfrey, whose credits include the Twilight and Maze Runner franchises as well as The Fault In Our Stars, are producing the drama via their Temple Hill Entertainment.

Isaac Klausner will exec produce. Hansen is attached to co-produce. Universal's vp of production Sara Scott will oversee the project for the studio.

Chazelle's La La Land has emerged as one of the top movies this awards season. The movie scored seven Golden Globe nominations, including one for Chazelle, for directing, and Gosling, for acting. Gosling also nabbed a SAG nomination.

The actor recently wrapped production on Blade Runner 2049 with Harrison Ford. First Man is eyeing a shoot next year.

Gosling is repped by UTA, Anonymous Content, LBI Entertainment and law firm Sloane Offer.

Read more: Damien Chazelle of 'La La Land': "I'm in Awe of Actors" Director Oscar Roundtable