A comparison theorem is stated for Markov processes in Polish state spaces. We consider a general class of stochastic orderings induced by a cone of real functions. The main result states that stochastic monotonicity of one process and comparability of the infinitesimal generators imply ordering of the processes. Several applications to convex type and to dependence orderings are given. In particular, Liggett's theorem on the association of Markov processes is a consequence of this comparison result.