When the moon is absent from the night sky, stars remain as celestial visual cues. Nonetheless, only birds [1, 2], seals [3], and humans [4] 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 [5, 6, 7, 8, 9]. Even on clear moonless nights, many beetles still manage to orientate along straight paths [5]. 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 [10], spiders [11], and insects [5, 12], 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.