A simple condition sufficient to ensure that a function of a time-homogeneous Markov process is again a time-homogeneous Markov process is proved. This result is then used to study a number of diffusions; in particular, an extension of a result of Pitman is proved, from which it is possible easily to deduce the path decompositions of Williams.