Britney Spears and Kevin Federline were married in 2004 and stayed together for two years before filing for divorce in 2006.