Although the classical PID (proportional-integral-derivative) controller is most widely and successfully used in engineering systems which are typically nonlinear with various uncertainties, almost all the existing investigations on PID controller focus on linear systems. The aim of this paper is to present a theory on PID controller for nonlinear uncertain systems, by giving a simple and analytic design method for the PID parameters together with a mathematic proof for the global stability and asymptotic regulation of the closed-loop control systems. To be specific, we will construct a 3-dimensional manifold within which the three PID parameters can be chosen arbitrarily to globally stabilize a wide class of second order nonlinear uncertain dynamical systems, as long as some knowledge on the upper bound of the derivatives of the nonlinear uncertain function is available. We will also try to make the feedback gains as small as possible by investigating the necessity of the manifold from which the PID parameters are chosen, and to establish some necessary and sufficient conditions for global stabilization of several special classes of nonlinear uncertain systems.