Usually, the parent with whom the child lived with the most during the tax year claims the credit. However, there are exceptions to this rule.