Our aim here is to give a survey of that part of continuous-time fluctuation theory which can be approached in terms of functionals of Lévy processes, our principal tools being Wiener-Hopf factorisation and local-time theory. Particular emphasis is given to one- and two-sided exit problems for spectrally negative and spectrally positive processes, and their applications to queues and dams. In addition, we give some weak-convergence theorems of heavy-traffic type, and some tail-estimates involving regular variation.