Hyperpigmented dermatoses are characterized by increased skin pigmentation caused by genetic, environmental factors and inflammation, which lasts a long time and is difficult to treat. Ultraviolet (UV), especially ultraviolet B (UVB), is the primary external factor inducing skin pigmentation. However, the specific regulatory mechanisms are not fully understood. Through analysis of GEO datasets from four UV-exposed skin cell/tissue samples, we found that TRPS1 is the only gene differentially expressed in multiple datasets (GSE22083, GSE67098 and GSE70280) and highly positively correlated with the expression of key melanogenesis genes. Consistently, we observed that TRPS1 is highly expressed in sun-exposed skin tissues compared to non-exposed skin. Additionally, the expression of TRPS1 was also significantly upregulated after UVB irradiation in isolated skin tissues and melanocytes, while knockdown of TRPS1 expression inhibited the UVB-induced melanogenesis. Further research revealed that overexpression of TRPS1 increased melanin content and tyrosinase activity in MNT1 cells, as well as upregulated the expression levels of key melanogenesis genes (MITF, TYR, TYRP1, DCT). In contrast, inhibition of TRPS1 expression showed the opposite effect. Moreover, we found that TRPS1 can bind to the promoter region of MITF, inhibiting the expression of MITF can antagonize the melanogenesis induced by TRPS1. In conclusion, UVB-induced TRPS1 promotes melanogenesis by activating the transcriptional activity of MITF.