None of the approximately 750,000 known asteroids and comets is thought to have originated outside our Solar System, but formation models suggest that orbital migration of the giant planets ejected a large fraction of the original planetesimals into interstellar space1. The predicted interstellar number density2 of icy interstellar objects of 2.4 × 10−4 au−3 suggested that these should have been detected by surveys, yet hitherto none had been seen. Many decades of asteroid and comet characterization have yielded formation models that explain the mass distribution, chemical abundances and planetary configuration of today’s Solar System, but until now there has been no way to tell if our Solar System is typical. Here we report observations and subsequent analysis of 1I/2017 U1 (‘Oumuamua) that demonstrate the extrasolar trajectory of ‘Oumuamua. Our observations reveal the object to be asteroidal, with no hint of cometary activity despite an approach within 0.25 au of the Sun. Spectroscopic measurements show that the object’s surface is consistent with comets or organic-rich asteroid surfaces found in our own Solar System. Light-curve observations indicate that the object has an extreme oblong shape, with a 10:1 axis ratio and a mean radius of 102±4 m, assuming an albedo of 0.04. Very few objects in our Solar System have such an extreme light curve. The presence of ‘Oumuamua suggests that previous estimates of the density of interstellar objects were pessimistically low. Imminent upgrades to contemporary asteroid survey instruments and improved data processing techniques are likely to produce more interstellar objects in the upcoming years.