Fast radio bursts are mysterious millisecond-duration transients prevalent in the radio sky. Rapid accumulation of data in recent years has facilitated an understanding of the underlying physical mechanisms of these events. Knowledge gained from the neighbouring fields of gamma-ray bursts and radio pulsars has also offered insights. Here I review developments in this fast-moving field. Two generic categories of radiation model invoking either magnetospheres of compact objects (neutron stars or black holes) or relativistic shocks launched from such objects have been much debated. The recent detection of a Galactic fast radio burst in association with a soft gamma-ray repeater suggests that magnetar engines can produce at least some, and probably all, fast radio bursts. Other engines that could produce fast radio bursts are not required, but are also not impossible.