The purpose of this paper is to discuss the Cauchy-Schwarz inequality and its application.Firstly,we present the generalization of Cauchy-Schwarz inequality.Then we give several applications of the generalization of Cauchy-Schwarz inequality in matrix analysis.