Elastic rebound theory explains the mechanism of earthquake generation as the sudden release of accumulated elastic strain energy in the Earth's crust. This release occurs when stress overcomes the frictional resistance on a fault line, causing the crust to snap back to its original shape and release seismic waves.