Married couples have a duty to maintain one another during their marriage, and in a small number of cases that duty continues after the marriage has ended.
Parents have a shared duty to maintain their children, each according to their financial ability. This is the case regardless of whether the parent in question has custody of the child.