Answer:
when the flood or landslide flows theremnants of plants and animals are taken to the sea and ocean then due to high pressure and temperature they forms fossils in sedimentary rocks and due to the anaerobic condition under the fosdils gets decayed and it forms the layer of mineral. so we can say thatminerals are formed in anaerobic condition under sedimentary rocks.