In the paper, motivated by the generating function of the Catalan numbers in combinatorial number theory and with the aid of Cauchy's integral formula in complex analysis, the authors generalize the Catalan numbers and its generating function, establish an explicit formula and an integral representation for the generalization of the Catalan numbers and corresponding generating function, and derive several integral formulas and combinatorial identities.