That entirely depends on what type of magma it is and under what conditions it crystallizes. If you are looking for a general rock type, the answer is igneous, but that's very general.
Those that are formed above the earth surface are extrusive eg basalt and those that are formed below are intrusive eg granite.
magma crystallization.
Sills, dikes, and plutons are types of igneous formations that result from the intrusion of magma into pre-existing rock. Sills are horizontal or gently inclined sheets of magma that intrude between layers of sedimentary rock. Dikes are vertical or steeply inclined intrusions that cut across existing rock layers. Plutons are large, irregularly shaped bodies of intrusive igneous rock that form deep within the Earth's crust, often resulting from the slow crystallization of magma over time.
Magma or lava. Classified as mafic or felsic, depending on it's minerology.
The size of the mineral crystals in an igneous rock is related to the rate of time spent in cooling from magma. Longer exposure to the crystallization temperature means larger crystals. Less time means smaller crystals, or in the case of obsidian, which cools extremely quickly, no crystallization.
crystallization and sollidification
Igneous rock
Igneous rocks like rhyolite or andesite are formed when magma undergoes crystallization above ground. These rocks cool relatively quickly, resulting in smaller mineral crystals compared to rocks formed from magma crystallizing deep underground.
Igneous rock is formed from the crystallization of molten magma or lava. Intrusive igneous rock is formed beneath Earth's crust from magma. Extrusive igneous rock is formed above Earth's crust from the crystallization of lava.
The cooling, solidification, crystallization and hardening of molten magma or lava.
Igneous rocks which form by the crystallization of magma.
Extrusive igneous rock is formed from the solidification of lava.Intrusive igneous rock is formed from the solidification of magma.
A plutonic rock is a rock that has formed at considerable depth. This happens by crystallization of magma or by chemical alteration.
Rocks formed by crystallization from a melt (magma).
As a magma crystallizes it undergoes fractional crystallization in which mafic minerals crystallize first and felsic minerals crystallize last. Therefore, as fractional crystallization occurs the magma becomes increasingly less mafic and increasingly more felsic. The viscosity also increases as a magma becomes more felsic.
The process of minerals formation from magma is called crystallization. During this process, minerals solidify and form crystals as the magma cools and hardens.
When magma solidifies before reaching Earth's surface it is called intrusive igneous rock, plutonic rock, a pluton. Igneous rock is formed from crystallization of molten magma.