Abstract Binary neutron-star mergers (BNSMs) are among the most readily detectable gravitational-wave (GW) sources with the Laser Interferometer Gravitational-wave Observatory (LIGO). They are also thought to produce short γ-ray bursts (SGRBs) and kilonovae that are powered by r-process nuclei. Detecting these phenomena simultaneously would provide an unprecedented view of the physics during and after the merger of two compact objects. Such a Rosetta Stone event was detected by LIGO/Virgo on 2017 August 17 at a distance of ∼44 Mpc. We monitored the position of the BNSM with Atacama Large Millimeter/submillimeter Array (ALMA) at 338.5 GHz and the Giant Metrewave Radio Telescope (GMRT) at 1.4 GHz, from 1.4 to 44 days after the merger. Our observations rule out any afterglow more luminous than in these bands, probing >2–4 dex fainter than previous SGRB limits. We match these limits, in conjunction with public data announcing the appearance of X-ray and radio emission in the weeks after the GW event, to templates of off-axis afterglows. Our broadband modeling suggests that GW170817 was accompanied by an SGRB and that the γ-ray burst (GRB) jet, powered by erg, had a half-opening angle of , and was misaligned by from our line of sight. The data are also consistent with a more collimated jet: erg, . This is the most conclusive detection of an off-axis GRB afterglow and the first associated with a BNSM-GW event to date. We use the viewing angle estimates to infer the initial bulk Lorentz factor and true energy release of the burst.