Trypsin is best known as a digestive enzyme in animals, but remains unexplored in phytoplankton, the major primary producers in the ocean. Here we report the prevalence of trypsin genes in global ocean phytoplankton and significant influences of environmental nitrogen (N) and phosphorus (P) on their expression. Using CRISPR/Cas9 mediated-knockout and overexpression analyses, we further reveal that a trypsin in Phaeodactylum tricornutum (PtTryp2) functions to repress N acquisition, but its expression decreases under N-deficiency to promote N acquisition. On the contrary, PtTryp2 promotes phosphate uptake per se, and its expression increases under P-deficiency to further reinforce P acquisition. Furthermore, PtTryp2 knockout led to amplitude magnification of the nitrate and phosphate uptake ‘seesaw’, whereas PtTryp2 overexpression dampened it, linking PtTryp2 to stabilizing N:P stoichiometry. Our data demonstrate that PtTryp2 is a coordinate regulator of N:P stoichiometric homeostasis. The study opens a window for deciphering how phytoplankton adapt to nutrient-variable marine environments.