Many galaxies are thought to have supermassive black holes at their centres-more than a million times the mass of the Sun. Measurements of stellar velocities and the discovery of variable X-ray emission have provided strong evidence in favour of such a black hole at the centre of the Milky Way, but have hitherto been unable to rule out conclusively the presence of alternative concentrations of mass. Here we report ten years of high-resolution astrometric imaging that allows us to trace two-thirds of the orbit of the star currently closest to the compact radio source (and massive black-hole candidate) Sagittarius A*. The observations, which include both pericentre and apocentre passages, show that the star is on a bound, highly elliptical keplerian orbit around Sgr A*, with an orbital period of 15.2 years and a pericentre distance of only 17 light hours. The orbit with the best fit to the observations requires a central point mass of (3.7 +/- 1.5) × 106 solar masses (M). The data no longer allow for a central mass composed of a dense cluster of dark stellar objects or a ball of massive, degenerate fermions.