In most situations, if the child lives with you more than 51% of the time, you get to claim the tax deduction & more importantly, file as "head of household."
But your custody agreement may provide for something else, so take it out & read it carefully. If it doesn't say anything, then the tax deduction belongs to you, as the parent with custody.
Hope this perspective helps!
Sign up to receive a 3-part series of useful information and advice about child custody law.