Uranus is the seventh planet from the Sun and is the third largest in the solar system. It was discovered by William Herschel in 1781. It has an equatorial diameter of 51,800 kilometers (32,190 miles) and orbits the Sun once every 84.01 Earth years. It has a mean distance from the Sun of 2.87 billion kilometers (1.78 billion miles). It rotates about its axis (retrograde rotation) once every 17 hours 14 minutes. Uranus has at least 22 moons. The two largest moons, Titania and Oberon, were discovered by William Herschel in 1787.