Petrifaction is another method of preservation of both plant and animal remains. This can occur in several ways. Mineral matter from underground water may be deposited in the interstices of porous materials, e.g., bones and some shells, making the material more compact and more stonelike and thus protecting it against disintegration. The original material may be entirely replaced with mineral matter, molecule by molecule, so that the original appearance and the microscopic structure are retained, as in petrified wood. Sometimes, on the other hand, all details of structure are lost in the replacement of organic matter by minerals, and only the form of the original is retained. In shales are sometimes found the silhouettes of plant tissues (more rarely of animals) formed by the carbon residue of the organism that remains after the volatile elements have been driven off.