As time passes, the flesh decays and only the skeleton. An imprint of the skeleton stays in the mud, even after the skeleton itself disintegrates. Many years pass. The mud with the fish's imprint gradually hardens and turns to stone under the pressure of the rock layers that have subsequently built up to top of it.