We introduce an operator valued analytic function corresponding to a given commuting contractive tuple of operators on some Hilbert space which we shall call the characteristic function of the given tuple. This function is used to generalize the celebrated work of Sz.-Nagy and Foias on the characteristic function of a contraction. More precisely we provide a functional model for a large class of operators and prove that the characteristic function is a complete unitary invariant for that class.