The route to turbulence in pipe flow is a complex, nonlinear, spatiotemporal process for which an increasingly clear theoretical understanding has emerged. This understanding is explained to the reader in several steps, exploiting analogies to co-existing thermodynamic phases and to excitable and bistable media. In the end, simple equations encapsulating the keys physical properties of pipe turbulence provide a comprehensive picture of all large-scale states and stages of the transition process. Important among these are metastable localized puffs, localized edge states, puff splitting and interactions between puffs, the critical point for the onset of sustained turbulence via spatiotemporal intermittency (directed percolation), and finally the rise of fully turbulent flow in the form of expanding weak and strong turbulent slugs.