Here we consider the global well-posedness of the 3D viscous primitive equations of the large-scale ocean. Inspired by the methods in Cao etc\cite{CT3} and Guo etc\cite{GH2}, we prove the global well-posedness and the long-time dynamics for the primitive equations.