In order to study the Drazin invertibility of a matrix with the generalized factorization over an arbitrary ring, the necessary and sufficient conditions for the existence of the Drazin inverse of a matrix are given by the properties of the generalized factorization. Let T = PAQ be a square matrix with the generalized factorization, then T has Drazin index k if and only if k is the smallest natural number such that Ak is regular and Uk(Vk) is invertible if and only if k is the smallest natural number such that Ak is regular and Uk(Vk) is invertible if and only if k is the smallest natural number such that Ak is regular and Uk(Vk) is invertible. The formulae to compute the Drazin inverse are also obtained. These results generalize recent results obtained for the Drazin inverse of a matrix with a universal factorization.