Open-pit mining
After mining finishes, the mine area may undergo land rehabilitation. Waste dumps are contoured to flatten them out, to further stabilise them. If the ore contains sulfides it is usually covered with a layer of clay to prevent access of rain and oxygen from the air, which can oxidise the sulfides to produce sulfuric acid, a phenomenon known as acid mine drainage. This is then generally covered with soil, and vegetation is planted to help consolidate the material. Eventually this layer will erode, but it is generally hoped that the rate of leaching or acid will be slowed by the cover such that the environment can handle the load of acid and associated heavy metals. There are no long term studies on the success of these covers due to the relatively short time in which large scale open pit mining has existed. It may take hundreds to thousands of years for some waste dumps to become "acid neutral" and stop leaching to the environment. The dumps are usually fenced off to prevent livestock denuding them of vegetation. The open pit is then surrounded with a fence, to prevent access, and it generally eventually fills up with ground water. In arid areas it may not fill due to deep groundwater levels. Instead of returning the land to its former natural state, it may also be reused, converting it into recreational parks or even residential/mixed communities.
Soil
Before the advent of X-ray diffraction clay was thought to be very small particles of quartz, feldspar, mica, hornblende or augite, but it is now known to be (with the exception of mica-based clays) a precipitate with a mineralogical composition that is dependent on but different from its parent materials and is classed as a secondary mineral. The type of clay that is formed is a function of the parent material and the composition of the minerals in solution. Clay minerals continue to be formed as long as the soil exists. Mica-based clays result from a modification of the primary mica mineral in such a way that it behaves and is classed as a clay. Most clays are crystalline, but some clays or some parts of clay minerals are amorphous. The clays of a soil are a mixture of the various types of clay, but one type predominates.