Solar eruptions, observed as flares and coronal mass ejections (CMEs), are the most energetic visible plasma phenomena in the solar system. CMEs are the central component of solar eruptions and are detected as coherent magnetized plasma structures expanding in the solar wind (SW). If they reach the Earth, their magnetic fields can drive strong disturbances in the ionosphere, causing deleterious effects on terrestrial technological systems. The scientific and practical importance of CMEs has led to numerous satellite missions observing the Sun and SW. This has culminated in the ability to continuously observe CMEs expanding from the Sun to 1 AU, where the magnetic fields and plasma parameters of the evolved structures ("ejecta") can be measured in situ. Until recently, the physical mechanisms responsible for eruptions were major unanswered questions in solar and by extension stellar physics. New observations of CME dynamics and associated eruptive phenomena are now providing more stringent constraints on models, and quantitative theory-data comparisons are helping to establish the correct mechanism of solar eruptions, particularly the driving force of CMEs and the evolution of their magnetic fields in three dimensions. Recent work has demonstrated that theoretical results can simultaneously replicate the observed CME position-time data, temporal profiles of associated solar flare soft X-ray emissions, and the magnetic field and plasma parameters of CME ejecta measured at 1 AU. Thus, a new theoretical framework with testable predictions is emerging to model eruptions and the coupling of CME ejecta to geomagnetic disturbances. The key physics in CME dynamics is the Lorentz hoop force acting on toroidal "flux ropes," scalable from tokamaks and similar laboratory plasma structures. The present paper reviews the latest advances in observational and theoretical understanding of CMEs with the emphasis on quantitative comparisons of theory and observation. Published by AIP Publishing.