The final chapter in the long-standing mystery of the γ-ray bursts (GRBs) centres on the origin of the short-hard class of bursts, which are suspected on theoretical grounds to result from the coalescence of neutron-star or black-hole binary systems. Numerous searches for the afterglows of short-hard bursts have been made, galvanized by the revolution in our understanding of long-duration GRBs that followed the discovery in 1997 of their broadband (X-ray, optical and radio) afterglow emission. Here we present the discovery of the X-ray afterglow of a short-hard burst, GRB 050709, whose accurate position allows us to associate it unambiguously with a star-forming galaxy at redshift z = 0.160, and whose optical lightcurve definitively excludes a supernova association. Together with results from three other recent short-hard bursts, this suggests that short-hard bursts release much less energy than the long-duration GRBs. Models requiring young stellar populations, such as magnetars and collapsars, are ruled out, while coalescing degenerate binaries remain the most promising progenitor candidates. Gamma-ray bursts (GRBs) are either ‘long and soft’, or ‘short and hard’. The long-duration type leave a strong afterglow and have been extensively studied. So we have a good idea of what causes them: explosions of massive stars in distant star-forming galaxies. Short GRBs, with no strong afterglow, were harder to pin down. The Swift satellite, launched last November, is designed to study bursts as soon as they happen. Having shown its worth with long GRBs (reported in the 18 August issue of Nature), Swift has now bagged a short burst, GRB 050509B, precisely measured its location and detected the X-ray afterglow. Four papers this week report on this and another recent short burst. Now, over 20 years after they were first recognized, the likely origin of the short GRBs is revealed as a merger between neutron stars of a binary system and the instantaneous production of a black hole.