Plants started to colonize land around 500 million years ago. It meant dealing with new challenges like absence of buoyancy, water and nutrients shortage, increased light radiation, reproduction on land, and interaction with new microorganisms. This obviously required the acquisition of novel functions and metabolic capacities. Cytochrome P450 (CYP) monooxygenases form the largest superfamily of enzymes and are present to catalyse critical and rate-limiting steps in most plant-specific pathways. The different families of CYP enzymes are typically associated with specific functions. CYP family emergence and evolution in the green lineage thus offer the opportunity to obtain a glimpse into the timing of the evolution of the critical functions that were required (or became dispensable) for the plant transition to land. Based on the analysis of currently available genomic data, this review provides an evolutionary history of plant CYPs in the context of plant terrestrialization and describes the associated functions in the different lineages. Without surprise it highlights the relevance of the biosynthesis of antioxidants and UV screens, biopolymers, and critical signalling pathways. It also points to important unsolved questions that would deserve to be answered to improve our understanding of plant adaptation to challenging environments and the management of agricultural traits. This article is part of the theme issue 'The evolution of plant metabolism'.