Abstract:The intrusion of magmatic rocks in coalbearing formations is widely distributed in coalbearing basins in Shanxi province. It has a great impact on coal strata. By using geology and coal petrology in coalfields, the lithology characteristics and intrusion rules of magmatic rocks in coalbearing strata in Shanxi province have been analyzed. It is concluded that magmatic rocks in coalbearing strata are mainly lamprophyre rocks in late Triassic and the alkaline—alkaline rocks in early Cretaceous period. The former occurrs under the background of extensional tectonics. It is controlled by the deep faults in the area. The latter is the result of the early Cretaceous lithospheric thinning and magmatic activity in the eastern part of North China Craton. Large scale intrusion has destroyed the stability and continuity of coalbearing strata. Thus, the area without coal has been fomred, but increased the paleogeothermal gradient. Large scale regional thermal metamorphism and small scale contact metamorphism in the invaded area have been formed. It has promoted secondary hydrocarbon generation in coal strata, and improved coal permeability. The intrusion of magmatic rocks has affected the distribution of some trace elements in coal.