Abstract We report the detection and mapping of atomic hydrogen in H i 21 cm emission from ESO 184-G82, the host galaxy of the gamma-ray burst 980425. This is the first instance where H i in emission has been detected from a galaxy hosting a gamma-ray burst (GRB). ESO 184-G82 is an isolated galaxy and contains a Wolf–Rayet region close to the location of the GRB and the associated supernova, SN 1998bw. This is one of the most luminous H ii regions identified in the local Universe, with a very high inferred density of star formation. The H i 21 cm observations reveal a high H i mass for the galaxy, twice as large as the stellar mass. The spatial and velocity distribution of the H i 21 cm emission reveals a disturbed rotating gas disc, which suggests that the galaxy has undergone a recent minor merger that disrupted its rotation. We find that the Wolf–Rayet region and the GRB are both located in the highest H i column density region of the galaxy. We speculate that the merger event has resulted in shock compression of the gas, triggering extreme star formation activity, and resulting in the formation of both the Wolf–Rayet region and the GRB. The high H i column density environment of the GRB is consistent with the high H i column densities seen in absorption in the host galaxies of high-redshift GRBs.