When galaxy M82 had a near-miss with its neighbor, it set off an explosive burst of star formation that sent plumes of hot gas tens of thousands of light years into space.