Comets are believed to have played a significant role in delivering water to Earth billions of years ago, particularly through impacts during the early formation of the planet. Recent studies suggest that the water in some comets shares a similar molecular signature to that of Earth's oceans, supporting this theory.