A stage of mafic magmatic activity occurred in Early Permian in the Dabasong Uplift of Junggar Basin, part of the magma intruded into the normal sedimentary and shallow buried fine sandstone to form diabase, and part of the magma erupted to form basalt. The surrounding fine sandstone just entered in the early diagenetic stage A when the magma intruded. The compaction of the surrounding clastic rock and rupture of a small number of clastic grains were caused by the extrusion of the magma intrusion. The presence of chemically deposited alkaline minerals such as calcite, dolomite, shortite, natural alkali, and northupite indicates an alkali lake sedimentary environment for the Fengcheng Formation. Primary alkaline minerals dissolved from the surrounding rocks were subsequently transported and precipitated to form cements. The formation of the calcite cements and calcite metasomatism resulted in considerable densification of the surrounding rock during early diagenesis and destruction of the reservoir quality. The mafic magma had abundant Fe2+ and Mg2+ ions and was deficient in K+ ions, resulting in large amounts of chlorite and iron precipitation in the surrounding rock mainly composed of clay. We have analyzed the influence of an ultrashallow intrusion on the surrounding clastic rock during the early diagenetic period, which provided a typical reference for establishing a systematic mechanistic model of how magmatic intrusions affect the surrounding rock.