There are several different models for the origin of syenites, but the role of magma mixing in the formation of syenites remains unclear. The Wulingshan alkaline complex in the northern North China Craton consists mainly of porphyritic syenite and syenite with abundant enclaves. These enclaves may provide new insights into the petrogenesis of syenites. We obtained zircon U–Pb age, mineral chemistry, whole‐rock major and trace elements, and Sr–Nd isotopic data for the enclaves and their host rocks to constrain the petrogenesis and identify the role of magma mixing during the formation of the different syenites in the Wulingshan alkaline complex. The results of zircon U–Pb dating indicate that the enclaves and host rocks crystallized contemporaneously at ca. 133 Ma. The enclaves contain abundant clinopyroxene, amphibole, and biotite, and their average Nb/Ta (18.46) and Th/Ce (0.04) ratios are similar to those of the mantle. The enclaves have relatively high Fe2O3T, MgO, and CaO contents, and their SiO2contents are equivalent to those of intermediate rocks, indicating that they formed by mixing the mafic and felsic magmas to some extent. The different mineral assemblages, major and trace elements and isotopic compositions of the enclaves in the porphyritic syenite and syenite indicate that they are two batches of parental magma with different properties derived from the mantle. The porphyritic syenite and syenite have high SiO2and low Fe2O3T, MgO, and CaO contents, as well as low V, Cr, Co, and Ni contents. These major and trace element characteristics of the host rocks require the involvement of crustal components. The Sr–Nd isotopic compositions of the enclaves and the host syenitoids plot on a mixing curve between enriched lithospheric mantle and lower crust, indicating that these rocks are the products of magma mixing and crust–mantle interaction. Considering the contact relationships, the geochemistry data, and the mixing model presented in the paper, we propose that the upwelling of the hot asthenosphere heated the overlying enriched lithospheric mantle and triggered low‐degree partial melting. The alkalic mafic magmas derived from enriched mantle sources were mixed with felsic magmas generated by partial melting of the lower (or upper) crust to form the different syenites.