Mathematical modeling of underground coal mining is discussed. Construction of a mathematical model of an underground mine is analyzed. The model is based on integrating the elementary units (modules). A so-called elementary mining field is defined with the example of a longwall face. A model of an elementary coal seam zone is constructed by integrating the elementary mining fields (in time and space) and supplementing them with a suitable model of mine roadway structure. By integrating the elementary coal seam zones a model of mining level is constructed. Such a mathematical model is used for optimizing the selected mining parameters e.g. structure of mine roadways, size of a coal mine, and organizational scheme of underground mining in a mine or in a mine section using the standardized optimization criterion e.g. investment. Use of the integration model of underground mining for optimizing coal mine construction is evaluated. The following elements of investment and operating cost are considered: shaft excavation, shaft equipment, investment in mining sections, ventilation, mine draining etc. 1 reference.