Matt Damon and Ben Affleck are teaming up for a new movie.

Matt Damon and Ben Affleck

Matt Damon and Ben Affleck

The 'Good Will Hunting' writers and actors are set to star in 'The Last Duel', about warriors in 14th century France, which will be directed by Sir Ridley Scott.

According to The Hollywood Reporter, the duo will adapt Eric Jager's book 'The Last Duel: A True Story of Crime, Scandal, and Trial by Combat in Medieval France' for the big screen, along with Nicole Holofcener.

The book tells the real-life story of two French knights and best friends, who become enemies after one returns home from the war and accuses the other of raping his wife.

The pair are sentenced to duel to the death where if the accuser loses, his wife will be found guilty of falsely accusing his best friend and will be burned at the stake.

Along with writing and starring, Matt, 48, and Ben, 46, are also producing the movie through their Pearl Street Films production company.

This will be the first movie that Matt and Ben have written and starred in together since the Oscar-winning 1997 movie 'Good Will Hunting', which propelled them both to Hollywood fame.

Matt previously revealed he and Ben wanted to star on screen together again but simply did not have the time.

He explained: "The big issue is time for us. We have a company together so we work on a lot of projects together, but to try to carve out the time is really tough.

"I would never say never. I'd love to be in one of his movies that he directs. The problem there is that he just keeps giving himself the best roles, so until he stops doing that and maybe just directs, none of us can really work with him."