Uranus is named after the god of the sky, and Neptune is named after the god of freshwater and the sea in Greek mythology.