Well, if you are familiar with the Feynman's path integral formulation of QM, the transition amplitude for a particular classical phase trajectory is proportional to:
[tex]
\exp \left( \frac{i}{\hbar} \, S \right)[/tex]
where S is the classical action of the system.
Now, in classical mechanics, there is no mention of Planck's constant. Formally, you go to classical mechanics by setting [itex]\hbar \rightarrow 0[/itex]. In this limit, the integral with a huge complex exponential is evaluated by the stationary phase approximation, i.e. the dominant contribution to the integral comes from the phase trajectory that makes the action extremal:
[tex]
\delta S =0[/tex]
Intuitively, you can understand this by the rapidly oscillating phase factor. Any phase trajectory that is not extremal, has a counterpart with the opposite phase, canceling their contribution. The only one left is the extremal phase trajectory.
You may notice that the last condition is the Hamilton's least (extremal) action principle.