Sambucus javanica Blume. is a Chinese native medicinal plant with high medicinal value. In this study, the MaxEnt model was used to explore the relationship between the geographical distribution of S. javanica and environmental factors, and to construct the distribution pattern of S. javanica under different climate scenarios. The results showed that the environmental conditions suitable for the distribution of S. javanica were as follows: precipitation in June ranged from 156.36 mm to 383.25 mm; solar radiation in December ranged from 6750.00 kJ•m-2•day-1 to 10521.00 kJ•m-2•day-1; isothermality ranged from 24.06 to 35.50; precipitation of warmest quarter ranged from 447.92 mm to 825.00 mm. Among them, precipitation and temperature were the key environmental factors affecting the distribution patterns of S. javanica. This plant could grow well mainly in two regions in China, covering a total area of 2.73 × 106 km2. The rst region mainly consists of Guizhou, western Hubei, southeastern Chongqing, southwestern Hunan, northern Guangxi, and a small part of eastern Yunnan. The second region mainly consists of Zhejiang, southern Anhui, and northern Fujian. Under the future SSP126 and SSP585 scenarios, potentially suitable habitats in the eastern part of the potential distribution of S. javanica (Jiangxi, Fujian, Zhejiang, and Anhui) might be at risk of habitat fragmentation.Based on the result of this study, Real-time monitoring of wild groups of S. javanica is now recommended to protect its genetic diversity. These ndings are supposed to promote the effective conservation and utilization of S. javanica in the future.