According to court records filed on Tuesday, a judge has declared that Kevin Costner and his wife of nearly two decades, Christine Baumgartner, are now legally divorced.

The couple’s marriage ended, and both became single on Friday.

The marriage ended nine months after Baumgartner filed for divorce, a judgment entered in the Santa Barbara county court showed.

In the first months after their split, Costner and Baumgartner fought in court over child custody and support payments and appeared to be headed for a contentious trial.

But they reached a settlement agreement in September that allowed them to avoid it. The two will have joint custody of their sons, aged 15 and 16, and their daughter, aged 13.

A judge in September ordered Costner to pay about 63,000 dollars per month in child support after she had sought about 175,000 dollars per month.

Costner, 69, and Baumgartner, 48, a model and handbag designer, began dating in 1998 and married at his Colorado ranch in 2004.

It was the second marriage for Costner, the Oscar and Emmy-winning star of TV’s Yellowstone and films including Dances With Wolves, The Bodyguard, and Bull Durham.

He also has four adult children from previous relationships.