Carotenoids are pigments that have a range of functions in human health. The carotenoid diatoxanthin is suggested to have antioxidant, anti-inflammatory and chemo-preventive properties. Diatoxanthin is only produced by a few groups of microalgae, where it functions in photoprotection. Its large-scale production in microalgae is currently not feasible. In fact, rapid conversion into the inactive pigment diadinoxanthin is triggered when cells are removed from a high-intensity light source, which is the case during large-scale harvesting of microalgae biomass. Zeaxanthin epoxidase (ZEP) 2 and/or ZEP3 have been suggested to be responsible for the back-conversion of high-light-accumulated diatoxanthin to diadinoxanthin in low-light diatoms. Using CRISPR/Cas9 gene editing technology, we knocked out the ZEP2 and ZEP3 genes in the marine diatom Phaeodactylum tricornutum to investigate their role in the diadinoxanthin–diatoxanthin cycle and determine if one of the mutant strains could function as a diatoxanthin production line. Light-shift experiments proved that ZEP3 encodes the enzyme converting diatoxanthin to diadinoxanthin in low light. Loss of ZEP3 caused the high-light-accumulated diatoxanthin to be stable for several hours after the cultures had been returned to low light, suggesting that zep3 mutant strains could be suitable as commercial production lines of diatoxanthin.