Carbonate rocks are a class of sedimentary rocks composed primarily of carbonate minerals. The two major types are limestone, which is composed of calcite or aragonite (different crystal forms of CaCO3), and dolomite rock (also known as dolostone), which is composed of dolomite (CaMg(CO3)2). They are usually classified on the basis of texture and grain size. Importantly, carbonate rocks can exist as metamorphic and igneous rocks, too. When recrystallized carbonate rocks are metamorphosed, marble is created. Rare igneous carbonate rocks even exist as intrusive carbonatites and, even rarer, there exists volcanic carbonate lava.