small localized areas. Coal mines Mining coal is Tangshan's principal industry, and when the quake struck around 10,000 miners were underground. For the most part the mine roadways (tunnels) were not seriously damaged, but with the loss of electrical power there was no illumination (aside from headlamps), no ventilation, and no working lifts. It is reported that most miners escaped within hours, but that some did not reach the surface until two weeks later. Most of the damage to the vertical shafts occurred within the first 50 meters, where they pass through the water-bearing alluvium. In many cases the concrete liner built to keep out the water cracked (particularly where not built properly), allowing a much greater inflow of water. Coupled with damage to the underground drainage system and lack of power to drive the pumps, many of the various mines flooded. Some electrical power to the mines was restored in three days, and some coal production resumed within ten days. However, de-watering, overhauling of flooded electrical equipment, and rebuilding of surface buildings and structures continued for a year and a half; the pre-earthquake level of production was not reached until the end of 1977. Railways The Beijing–Shanhaiguan Railway (built in 1887) is a double-track Class I trunk line that runs from Beijing southeast to Tianjin and Tanggu, then turns northeast to cross the Yongdingxin River and its estuary to run to Ninghe and then Tangshan. From Tangshan it continues northeast and then east to Chengli, and then to Qinhuangdao and Shanhaiguan. This is the principal connection of Beijing, Tianjin, and Tangshan to the seaports, and to Northeast China. The Tongxian to Tuozitou (within modern-day Luan County) Railway (built in 1976) is a single-track Class I trunk line that runs east from the eastern outskirts of Beijing to where it meets the Beijing to Shanhaiguan line northeast of Tangshan (near the epicenter of the M 7.1 quake). All of this was built "with no consideration for earthquake resistant design", although some "earthquake resistance measures" for large and medium bridges were applied following the 1975 Haicheng earthquake. These vital arteries (and other railways and branch lines) were seriously damaged by the earthquakes, mainly in the areas of intensity IX or greater shaking. (This includes a large area around Tangshan quake, and areas around Ninghe and Luanxian following the M 6.9 and M 7.4 aftershocks.) At the time of the main quake