the phenomenon of phase transitions in one-dimensional systems is discussed. equilibrium systems are reviewed and some properties of an energy function which may allow phase transitions and phase ordering in one dimension are identified. we then give an overview of the one-dimensional phase transitions which have been studied in nonequilibrium systems. a particularly simple model, the zero-range process, for which the steady state is known exactly as a product measure, is discussed in some detail. generalisations of the model, for which a product measure still holds, are also discussed. we analyse in detail a condensation phase transition in the model and show how conditions under which it may occur may be related to the existence of an effective long-range energy function. it is also shown that even when the conditions for condensation are not fulfilled one can still observe very sharp crossover behaviour and apparent condensation in a finite system. although the zero-range process is not well known within the physics community, several nonequilibrium models have been proposed that are examples of a zero-range process, or closely related to it, and we review these applications here.