Flexi Says: Both basalt and gabbro rocks are formed from the cooling of mafic magma, but there are some important differences. Basalts are categorized as extrusive igneous rocks and are formed by cooling quickly. Gabbros are categorized as intrusive igneous rocks and are formed by cooling slowly.