Co-stars Blake Lively and Justin Baldoni have settled a lawsuit that followed filming ​of the 2024 movie It Ends With Us.

The settlement comes just two weeks ahead of a scheduled trial, where both stars were expected to testify.

The Hollywood legal battle began in 2024 when Lively sued Baldoni, accusing him of harassment, sexual misconduct, and a smear campaign on the set of their hit movie.

He denied those accusations and filed a counter-suit. The litigation unveiled the private happenings of Hollywood elite, including texts and emails from Lively, Baldoni and their host of A-list friends.

Attorneys for the two actors issued a statement on Monday to announce the settlement, saying their film "is a source of pride to all of us who worked to bring it to life".