Exoplanets down to the size of Earth have been found, but not in the habitable zone--that is, at a distance from the parent star at which water, if present, would be liquid. There are planets in the habitable zone of stars cooler than our Sun, but for reasons such as tidal locking and strong stellar activity, they are unlikely to harbour water-carbon life as we know it. The detection of a habitable Earth-mass planet orbiting a star similar to our Sun is extremely difficult, because such a signal is overwhelmed by stellar perturbations. Here we report the detection of an Earth-mass planet orbiting our neighbour star α Centauri B, a member of the closest stellar system to the Sun. The planet has an orbital period of 3.236 days and is about 0.04 astronomical units from the star (one astronomical unit is the Earth-Sun distance).