Processes by which minerals are introduced into other matter, such as into rock to form ore deposits or into organic components to form fossils.