Basalt is a common extrusive igneous (volcanic) rock formed from the rapid cooling of basaltic lava exposed at or very near the surface of a planet or moon. By definition, basalt must be an aphanitic igneous rock with less than 20% quartz and less than 10% feldspathoid by volume, and where at least 65% of the feldspar is in the form of plagioclase. Basalt is usually grey to black in color, but rapidly weathers to brown or rust-red due to oxidation of its mafic (iron-rich) minerals into rust. It almost always has a fine-grained mineral texture due to the molten rock cooling too quickly for large mineral crystals to grow, although it can sometimes be porphyritic, containing the larger crystals formed prior to the extrusion that brought the lava to the surface, embedded in a finer-grained matrix. Basalt with a vesicular or frothy texture is called scoria, and forms when dissolved gases are forced out of solution and form vesicles as the lava decompresses as it reaches the surface.
On Earth, most basalt magmas have formed by decompression melting of the mantle. Basalt commonly erupts on Io, and has also formed on Earth's Moon, Mars, Venus, and even on the asteroid Vesta. Source rocks for the partial melts probably include both peridotite and pyroxenite. The crustal portions of oceanic tectonic plates are composed predominantly of basalt, produced from upwelling mantle below ocean ridges.
The term basalt is at times applied to shallow intrusive rocks with a composition typical of basalt, but rocks of this composition with a phaneritic (coarse) groundmass are generally referred to as diabase (also called dolerite) or gabbro.