Earth's water may have originated from both asteroidal material and gas left over from the formation of the Sun.