how do remains become petrified fossils

I found this on Gogle.

Petrification (petros means stone) occurs when the organic matter is completely replaced by minerals and the fossil is turned to stone. This generally occurs by filling the pores of the tissue, and inter and intra cellular spaces with minerals, then dissolving the organic matter and replacing it with minerals.