Numerous historical buildings exist in Shanxi Province, a major coal producing area in China, so there exist many overlapping areas between ancient wooden buildings and coal mining. Coal mining in overlapping areas will lead to surface subsidence, which will have an impact on historical buildings. Based on the distribution of historical buildings and the distribution and mining of coal resources in Shanxi Province, this paper concludes that the overlapping areas of coal mining and ancient wooden buildings in Shanxi Province are mainly concentrated in Changzhi City, and the Lu’an mining area in Changzhi City is selected as the research object. In addition, using the gray correlation analysis method, the surface subsidence coefficient, which characterizes the intensity of mining subsidence, is used as the reference sequence. Seven factors selected from the geological conditions and mining conditions of the Lu’an mining area are used as the comparison sequence to calculate the gray correlation between each influencing factor and the surface subsidence coefficient, and to obtain that geological factors such as the nature of the overlying rock layer, bedrock thickness and dip angle of the coal seam, and mining factors such as mining height, average mining depth and working face size largely determine the surface subsidence coefficient. The surface subsidence in the overlap area could largely be influenced by geological factors such as the nature of the overlying rock layer, bedrock thickness and coal seam inclination, and mining factors such as mining height, average mining depth and working face size. Finally, we investigate the possible effects of surface subsidence on ancient wooden buildings in the overlapping area with the surface subsidence and formation mechanism and propose technical measures to reduce the effects of surface subsidence due to coal mining on historical buildings in the overlapping area.