Anthracite forms from the accumulation of plant debris in a swamp environment. When plant debris dies and falls into the swamp, the standing water of the swamp protects it from decay.
Dolomite rocks are originally deposited as calcite or aragonite rich limestone, but during diagenesis process, the calcite or aragonite is transformed into dolomite.