It is igneous rock. When magma cools, it solidifies into a rock called an igneous rock. They are formed when the hot, molten rock rises to the surface, it undergoes changes in temperature and pressure that causes it to cool, solidify and crystalize. Hope this helped you :)!