The Anwangshan gold deposit is located in the northwestern part of the Fengtai Basin, Western Qinling Orogen (WQO). The gold ore is hosted within quartz syenite and its contact zone. The U–Pb weighted mean age of the quartz syenite is 231 ± 1.8 Ma. It is characterized by high potassium (K2O = 10.13%, K2O/Na2O > 1) and high magnesium (Mg# = 55.31 to 72.78) content, enriched in large ion lithophile elements (Th, U, and Ba) and light rare earth elements (LREE), with a typical “TNT” (Ti, Nb, and Ta) deficiency. The geochemical features and Hf isotope compositions (εHf(t) = −6.68 to +2.25) suggest that the quartz syenite would form from partial melting of an enriched lithospheric mantle under an extensional setting. Three generations of gold mineralization have been identified, including the quartz–sericite–pyrite (Py1) stage I, the quartz–pyrite (Py2)–polymetallic sulfide–early calcite stage II, and the epidote–late calcite stage III. In situ sulfur isotope analysis of pyrite shows that Py1 (δ34S = −1.1 to +3.8‰) possesses mantle sulfur characteristics. However, Py2 has totally different δ34S (+5.1 to +6.7‰), which lies between the typical orogenic gold deposits in the WQO (δ34S = +8 to +12‰) and mantle sulfur. This suggests a mixed source of metamorphosed sediments and magmatic sulfur during stage II gold mineralization. The fluid inclusions in auriferous quartz have three different types, including the liquid-rich phase type, pure (gas or liquid)-phase type, and daughter-minerals-bearing phase type. Multiple-stage fluid inclusions indicate that the ore fluids are medium-temperature (concentrated at 220 to 270 °C), medium-salinity (7.85 to 13.80% NaCleq) CO2–H2O–NaCl systems. The salinity is quite different from typical orogenic gold deposits in WQO and worldwide, and this is more likely to be a mixture of magmatic and metamorphic fluids as well. In summary, the quartz syenite should have not only a spatio-temporal but also a genetical relationship with the Anwangshan gold deposit. It could provide most of the gold and ore fluids at the first stage, with metamorphic fluids and/or gold joining in during the later stages.