When the moon is absent from the night sky, stars remain as celestial visual cues. Nonetheless, only birds, seals, and humans are known to use stars for orientation. African ball-rolling dung beetles exploit the sun, the moon, and the celestial polarization pattern to move along straight paths, away from the intense competition at the dung pile. Even on clear moonless nights, many beetles still manage to orientate along straight paths. This led us to hypothesize that dung beetles exploit the starry sky for orientation, a feat that has, to our knowledge, never been demonstrated in an insect. Here, we show that dung beetles transport their dung balls along straight paths under a starlit sky but lose this ability under overcast conditions. In a planetarium, the beetles orientate equally well when rolling under a full starlit sky as when only the Milky Way is present. The use of this bidirectional celestial cue for orientation has been proposed for vertebrates, spiders, and insects, but never proven. This finding represents the first convincing demonstration for the use of the starry sky for orientation in insects and provides the first documented use of the Milky Way for orientation in the animal kingdom.