Origin
Basalt is an extrusive igneous rock, which means that it is formed when magma erupts onto the Earth's surface and cools quickly. This rapid cooling results in a fine-grained texture. Granite, on the other hand, is an intrusive igneous rock, which means that it is formed when magma cools and solidifies beneath the Earth's surface. This slower cooling allows the minerals in the magma to grow larger, resulting in a coarse-grained texture.
Texture
Basalt typically has a fine-grained texture, while granite has a coarse-grained texture. This difference in texture is due to the different rates at which the magma cools and solidifies. Basalt cools quickly, which prevents the minerals from growing large. Granite cools slowly, which allows the minerals to grow larger.
Mineral composition
Basalt is typically composed of plagioclase feldspar, pyroxene, and olivine. Granite is typically composed of quartz, feldspar, and mica. The different mineral compositions of these two rocks are due to the different temperatures and pressures at which they are formed.
Similarities
Basalt and granite are both igneous rocks. They are both formed when magma or lava cools and solidifies. They are both important components of the Earth's crust.