Specifically, it's a chemical sedimentary rock, formed by the precipitation of the mineral dolomite (CaMg(CO3)2) from water.