A New York judge has dismissed Justin Baldoni's $400m (£295m) defamation lawsuit against his former co-star Blake Lively.

The pair, who both starred in the 2024 film It Ends with Us, have been locked in a legal battle for several months, with a trial set for next year.

Judge Lewis Liman on Monday dismissed Baldoni's countersuit, which alleged extortion, defamation and other allegations.

Baldoni brought the suit after Lively filed a legal complaint last year against her former co-star, accusing him of sexual harassment and starting a smear campaign against her.

Lively filed a suit against Baldoni's Wayfarer Studios in December 2024, alleging she was sexually harassed on set and that Baldoni retaliated against her for bringing those complaints, among other allegations.