Recent global marine lipidomic analysis reveals a strong relationship between ocean temperature and phytoplanktonic abundance of omega-3 long-chain polyunsaturated fatty acids (LC-PUFAs), especially eicosapentaenoic acid (EPA) and docosahexaenoic acid (DHA), which are essential for human nutrition and primarily sourced from phytoplankton in marine food webs. In phytoplanktonic organisms, EPA may play a major role in regulating the phase transition temperature of membranes, while the function of DHA remains unexplored. In the oleaginous diatom Phaeodactylum tricornutum, DHA is distributed mainly on extraplastidial phospholipids, which is very different from the EPA enriched in thylakoid lipids. Here, CRISPR/Cas9-mediated knockout of delta-5 elongase (ptELO5a), which encodes a delta-5 elongase (ELO5) catalyzing the elongation of EPA to synthesize DHA, led to a substantial interruption of DHA synthesis in P. tricornutum. The ptELO5a mutants showed some alterations in transcriptome and glycerolipidomes, including membrane lipids and triacylglycerols under normal temperature (22°C), and were more sensitive to elevated temperature (28°C) than wild type. We conclude that PtELO5a-mediated synthesis of small amounts of DHA has indispensable functions in regulating membrane lipids, indirectly contributing to storage lipid accumulation, and maintaining thermomorphogenesis in P. tricornutum. This study also highlights the significance of DHA synthesis and lipid composition for environmental adaptation of P. tricornutum.