The Nanshan granite body, which is tectonically located at the western part of Beitou composite body, yields a SHRIMP zircon U-Pb age of (158.1±1.8) Ma which suggests that the granite body is the product of magmatism during the early Yanshanian period. The geochemical characteristics indicate that the granite body consists of peraluminous alkaline rocks characterized by high contents of silica and alkali, low contents of CaO and MgO, high values of TFeO/MgO and low values of CaO/Na2O, K2O/Na2O>1, A/NK=7.8~11.92, A/CNK=1.33~1.68. Based on the above-mentioned researches, it is suggested that the Nanshan granitic magma probably formed in a relative compression tectonic setting during Middle Jurassic period. While in the relative extention tectonic setting during early stage of Late Jurassic epoch, there occured thinning of lithosphere and upwelling of asthenospheric mantle, aluminious A-type granites with strong crystallization differentiation were formed by partial melting of mudstone and small-volume sandstone enriched by mantle-derived fluid.