Yongping copper deposit is a large-scale polymetallic mine that contains 1.6 Mt of proven Cu metal reserves with an average grade of 0.74 % and contributes significantly to China’s production of copper. This deposit is situated in the eastern part of the Qin-Hang Metallogenic Belt (Jiangxi province, SE China) at the contact zone between the Yangtze Cu–Mo metallogenic belt and the Jiangxi W–Sn–REE metallogenic belt. The thick stratiform and lenticular-shaped orebodies are hosted in the Carboniferous Yejiawan Formation, consisting of sandstone, limestone, mudstone, and chert-rich clastic rocks. Dominant metal-bearing minerals are chalcopyrite and pyrite with a minor amount of sphalerite, tetrahedrite, galena, molybdenite, pyrrhotite, magnetite, hematite, and scheelite. Although intensive research has been done on its geological setting, geochemical characteristics, and geodynamic evolution over the past thirty years, the origin and depositional environments have remained controversial. In the current research, in situ trace element geochemistry and sulfur isotope analyses, coupled with microscopic investigation, were conducted on sulfide minerals using the LA-ICP-MS technique. The results display that Yongping pyrite rich in Co, As, Ni, Zn, Cu, and Te and deplete in other trace elements. Sphalerite rich in Fe, Mn, Cu, and Cd, followed by In, Co and Ga. The calculation results of formula T(°C) = (Fe/Zn + 0.2953)/(0.0013) reveal that sphalerite was formed in medium–high temperature conditions (262 °C–377 °C). The δ34SV-CDT values of studied sulfides (pyrite, chalcopyrite, sphalerite, and tetrahedrite) varied from −1.52 ‰ to 5.13 ‰ with an average of 2.36 ‰, which are highly consistent with those recorded from porphyritic biotite granite stock of Shizitou (from 2.20 ‰ to 4.5 ‰), suggesting a dominantly magmatic origin. Collectively, trace element compositions of analyzed sphalerite and pyrite from the Yongping area exhibit characteristics of typical skarn deposits. Combined with previous studies, we can conclude that the Yongping Cu deposit is a skarn deposit that was most likely formed by contact metasomatism after the intrusion of the Jurassic Huoshaogang-Shizitou granitic stock into the Carboniferous Yejiawan Formation.