Minerals occur in beds or layers in sedimentary rocks. They are formed as a result of deposition, accumulation, and concentration in the horizontal strata. For example - coal, which has been formed as a result of long periods under great heat and pressure. Minerals like gypsum, potash salt, and sodium salt are formed as a result of evaporation.