As one of the main fossil fuels globally, coal can be enriched with a variety of critical metal elements in specific geological conditions. This paper investigates the mineral compositions and concentrations of major and minor element oxides and trace elements in the No. 9 coal from the Xinyuan mine of the northern Qinshui coalfield, China, and discusses the modes of occurrence and enrichment mechanisms of critical metal elements such as Li, Ga, Th and REY. The mineral compositions of the No. 9 coal are primarily represented by clay minerals and quartz, with a small amount of calcite, siderite, anatase, etc. The major element oxides in the No. 9 coal are dominated by SiO2 and Al2O3. Compared with world hard coal, the No. 9 coal of the Xinyuan mine is rich in Li (CC = 8.00) and Th, slightly enriched with Pb, Sc, Ga, Y, La, Ce, Tb, Dy, Er, Yb and Hg, and depleted in Mn, Co, Ni, Rb, Cs and Tl. The critical metal elements such as Li, Ga, Th and REY that enriched No. 9 coal mainly occur in aluminum silicates. The genetic type of the critical metal elements in the No. 9 coal from the Xinyuan mine is source rock-controlled type. The critical metal minerals and solutions from the source area were transported to the study area by the action of water. Due to the change of swamp water conditions, the critical metal elements were combined with clay minerals and enriched the coal.