Rock that forms when hot liquid rock, or magma, cools and solidifies.