In order to investigate the abundance and distribution pattern of rare earth elements (REE) in coals at Western Huagou exploration area when coal seams were intruded by magma, ICP-MS, XRF were used to analyze in 24 coal samples and 8 magmatic rock samples. The REE's data in the No.8 and No. 10 coal-beds were compared in order to find the features of REE in coals which altered. Main conclusions are as following: (1) The average content of REE in coals at Western Huagou exploration area is 92.09 ×10^-6. The value of LRRR/HREE is between 6.54 and 8.53. (2) The abundance of REE in coals was changed caused by the igneous invasion, and the intrusion lead to a second migration and enrichment of the REE. And this process will be influenced by the components of magma.