Credits and deductions

Is a deposit on a new construction home a purchase or is the purchase considered when it closes just before the possession date?