Animals migrate long distances by using a variety of navigational cues such as the Earth's magnetic field, the position of the sun and stars, landmarks, and even smells. They also rely on their innate biological instincts and knowledge passed down through generations to guide them along their migration routes. Additionally, some animals are believed to have an internal GPS system that helps them navigate accurately. Overall, it's a combination of genetics, environmental cues, and learned behaviors that enable animals to successfully migrate long distances.