Flavonoids, the largest group of polyphenolic secondary metabolites present in all land plants, play essential roles in many biological processes and defense against abiotic stresses. In the flavonoid biosynthesis pathway, flavones synthase I (FNSI), flavanone 3-hydroxylase (F3H), flavonol synthase (FLS), and anthocyanidin synthase (ANS) all belong to 2-oxoglutarate/Fe(II)-dependent dioxygenases (2-ODDs) family, which catalyzes the critical oxidative reactions to form different flavonoid subgroups. Here, a novel 2-ODD gene was cloned from Antarctic moss Pohlia nutans (Pn2-ODD1) and its functions were investigated both in two model plants, Physcomitrella patens and Arabidopsis thaliana. Heterologous expression of Pn2-ODD1 increased the accumulation of anthocyanins and flavonol in Arabidopsis. Meanwhile, the transgenic P. patens and Arabidopsis with expressing Pn2-ODD1 exhibited enhanced tolerance to salinity and drought stresses, with larger gametophyte sizes, better seed germination, and longer root growth. Heterologous expression of Pn2-ODD1 in Arabidopsis also conferred the tolerance to UV-B radiation and oxidative stress by increasing antioxidant capacity. Therefore, we showed that Pn2-ODD1 participated in the accumulation of anthocyanins and flavonol in transgenic plants, and regulated the tolerance to abiotic stresses in plants, contributing to the adaptation of P. nutans to the polar environment.