Under the tax law, one spouse is not considered a dependent of the other. If you're divorced or legally separated during the year, your former spouse cannot be your qualifying relative even if he or she is a member of your household for the whole year.