A geochemical study of ancient (Permian to Neogene) dolomites that were formed under widely different salinities revealed certain distinct characteristics: (1) marine (non-evaporitic) dolomites vary in their calcium content from stoichiometric to calcian (57 mole percent, and their sodium content is 150-350 ppm; (2) dolomites in association with gypsum cover the same range of stoichiometry as the marine dolomites, but their sodium content reaches much higher values (as high as approximately 2,700 ppm). Furthermore, a negative correlation is present between excess calcium and sodium; and (3) dolomites in association with halite have an almost ideal stoichiometric composition and a sodium content overlapping the lower range of marine dolomites (150-270 ppm). To explain these characteristics, a model is presented that states that ionic ratios in dolomites are related to the respective ratios in mother solutions. Those solutions are considered to have evolved through a combination of surface evaporation and modification in pore water, mainly through dolomitization. Accordingly, our model indicates that the compositional variations in the "evaporitic" dolomites correlate well with the expected Ca/Mg and Na/Ca ratios in modified evaporitic sea water. The "marine" dolomites, however, formed under varying degrees of modification, the two extremes being non-modified (open-system) solutions and fully modified (closed-system) solutions. In that context, the deviations from stoichiometric composition of the marine dolomites reflect different degrees of modification. Thus, advanced modification is expressed in higher Ca/Mg in solution and more calcian dolomite. The distribution of δ18O in the studied dolomites is consistent with anticipated variations, where δ18O increases at the first stage of evaporation and tends to decrease beyond a certain high salinity. The conclusions of the present study relate only to the main trends of changes that occur in dolomites forming under a wide range of salinity and ignore the fine details. They indicate, however, that the geochemical characteristics of ancient dolomites reflect the imprints of their depositional and diagenetic environments.