In the 1840s, Uranus, then the farthest known planet, kept drifting off its predicted path.
French mathematician Urbain Le Verrier guessed an unseen planet's gravity was pulling it. From that pull, he worked out where the planet must be and wrote to astronomers in Berlin.
The night his letter arrived, they found Neptune almost exactly there.