Magma generation is the process by which solid mantle rocks melt to form molten rock, primarily driven by decompression, addition of volatiles, or heat transfer. This process is fundamental to understanding volcanic activity, plate tectonics, and the formation of the Earth's crust.