The pore structure of coal seams and its complexity have an important effect on the storage of methane and other gases, and magmatic thermal action has a significant effect on the pore characteristics of coal seams. Understanding the impact of magmatic action on the pore structure of coal seams and their complexity is crucial for the evaluation of unconventional gas reservoirs. The pore structure of 22 samples from the Zhuxianzhuang coal mine in Huaibei was investigated using mercury injection capillary pressure (MICP), field emission scanning electron microscopy (FE-SEM), and other experiments, and the Menger sponge model and multiple fractal method were used to study the nonhomogeneity of magmatism in the pores of coal samples. The results show that (1) under the influence of magmatism, the pore volume (PV) and specific surface area (SSA) of the coal samples generally show an increasing trend. ( 2) Magmatism can have a certain influence on the pore complexity by affecting the content of H element in coal samples. The higher the H content of coal samples, the weaker the pore complexity and the stronger the overall pore connectivity. (3) Igneous intrusion can induce coal transformation, and the pore structure of coal samples can change significantly during coalification. Semigraphitized coals have greater pore complexity and poorer connectivity than anthracite/altered anthracite.