Halite dominantly occurs within sedimentary rocks where it has formed from the evaporation of seawater or salty lake water