The pair got together in the summer of 2004, after Spears's commercial peak.
They married a few months later and quickly welcomed their two sons: Preston, now 20, and Jayden, now 19.
Spears filed for divorce in 2006 and the divorce was finalised in 2007.
The couple fought publicly over custody of their sons and ultimately Federline was given sole custody of the boys.
In the wake of Federline getting full custody, Spears was seen behaving in a way that Federline characterises in his book as erratic.
She made headlines with incidents like shaving her head and hitting a photographer's car with an umbrella.
Those public incidents raised concern about her mental welfare, and after she was taken to hospital twice, a temporary conservatorship was established in 2008 and made permanent later that year.
Spears remained under that controversial arrangement until 2021, under which her father and others controlled her finances and aspects of her personal life. She did not regain custody of her children until after it was lifted.