Social Security is an important part of the financial plans that Americans set up for their retirement years. But many don't know how divorce affects the benefits they're entitled to collect.

In the following video, Fool contributor Dan Caplinger looks at situations in which divorced spouses can collect benefits based on an ex-spouse's work record. Dan notes that although the rules are different depending on whether your ex is still living or has passed away, there are certain common elements to both situations. Dan also looks at the different ways in which remarrying can affect your ability to collect benefits based on an ex-spouse's work history.