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.