<p>Stars, especially larger stars, are hot enough at their core to produce significant amounts of heavier elements: Carbon, Nitrogen and Oxygen. When the stars die, some of these elements are returned to the interstellar medium. </p>

<p>The nebula from which stars form contains not only Hydrogen, but also all the other elements found on Earth. The nebula contains the Carbon that is the basis of life, the Nitrogen that forms the atmosphere, the Silicon that makes rocks, and the oxygen that reacts with hydrogen to form water. </p>

<p>Most of the water on Earth was actually brought to the Earth on asteroids after the Earth had formed, see <a href="https://astronomy.stackexchange.com/questions/10277/how-did-water-get-on-earth">How did water get on Earth</a></p>

CC BY-SA 3.0
2017-03-21T03:56:56.310Z
Just to add something here. The reason it is thought that water was brought to Earth rather than always being here is because ice would have condensed considerably farther out than the Earth's orbit in our protoplanetary disk. (past the "snowline" 150 - 170K) https://ay201b.wordpress.com/the-snow-line-in-protoplanetary-disks/ . It is thought to have been brought to earth by asteroids rather than comets because of the D/H ratios shown in the chart referenced by James above.
Jack R. Woods
CC BY-SA 3.0
2017-03-16T06:20:47.807Z
2017-03-16T06:20:47.807Z
2017-04-13T12:59:06.910Z
James K
<p>Usually, when a star dies, it will usually form a planetary nebula or supernova and most of this matter will reach the interstellar medium.</p>

<p>When it collapses due to some disturbance, a protoplanetary disk forms, it will cool off eventually. Once it is low enough temperature to form compounds, usually molecular hydrogen (H2) will form first. Here is something that may help you: 
No, H2O cannot exist in stars, but H and O separately can. Hydrogen is the basic building material of the universe, created in the Big Bang. Oxygen is created by nuclear reactions in stars. If you put H and O together in the cold of space, you get H2O. There are enormous amounts of water in space. In fact, nearly all of the oxygen in space is in the form of water or carbon monoxide. Similarly, most the carbon and nitrogen in space are also in their most hydrogenated forms: methane (CH4) and ammonia (NH3).
<a href="http://curious.astro.cornell.edu/about-us/101-the-universe/cosmology-and-the-big-bang/general-questions/580-where-did-all-the-water-in-the-universe-come-from-intermediate" rel="nofollow noreferrer">(Source)</a>
Since water is H2O, it is likely to form because nebulae contain so much hydrogen and some oxygen. The Earth was most likely hit by comets and asteroids that contained water, and when our planet cooled off, we got our oceans.</p>

CC BY-SA 3.0
2017-03-18T22:49:18.133Z
2017-03-18T22:49:18.133Z
StellarExile
<p>We know that a planet is formed from the nebula of gas and dust. Gravity pulls the particles together in a core. So we all know that the gas cloud is a cloud of hydrogen.  </p>

<p>But how did water form? From where did oxygen come? How did it combine to make $\text{H}_2\text{O}$?</p>

CC BY-SA 3.0
2017-03-14T00:24:38.207Z
This might get you started:   http://www.space.com/16943-supernova-explosion-solar-system-formation.html  Elements like Oxygen, Silicon, Iron are all formed in a supernova.    As I understand it, chemistry happens too, on a limited scale, within the nebula, so you have basic building blocks.   Silicates like SO2, Ices/gases like H20 and CO2, but I'll let someone smarter than me give a more complete answer.   Solarsystems don't form out of hydrogen easily because it's too light, it takes a certain amount of heavier elements.
userLTK
CC BY-SA 3.0
2017-03-14T01:53:34.833Z
@userLTK You're wrong about the first part. Oxygen, Silicon, Iron, are all formed during a star's normal lifecycle, not a supernova. Any element iron or below can be formed during a star's normal lifecycle. A supernova causes the formation of any element Uranium or below (so basically all of them).
Aaron Franke
CC BY-SA 3.0
2017-03-14T02:22:29.837Z
@AaronFranke  You're right about that, though those elements spread across the galaxy and became part of new solar system formation from the supernova explosion.    My bad.
userLTK
CC BY-SA 3.0
2017-03-14T19:03:18.707Z
@Zhe  (cc Aaron Franke) You have perpetuated the myth that elements beyond iron are not formed during a star's "normal lifecycle". Ever since the detection of short-lived Technetium in the atmospheres of some giant stars in the1950s we have known otherwise. They do not form by fusion, but by neutron capture.
ProfRob
CC BY-SA 3.0
2017-03-16T13:38:05.957Z
@Donald.McLean and flagger: Flags are **not** for factually incorrect posts or comments. I'm not going to undelete since comments are temporary anyway, but please be advised. In the future, reply to the comment to address the factual errors.
called2voyage
<water>
How was water formed?
avito009
# How was water formed?

(Asked by: username_0 on 2017-03-13)

We know that a planet is formed from the nebula of gas and dust. Gravity pulls the particles together in a core. So we all know that the gas cloud is a cloud of hydrogen.

But how did water form? From where did oxygen come? How did it combine to make $\text{H}\_2\text{O}$?

**Tags:** water

> **Comments:**
> **username_1**: This might get you started:   http://www.space.com/16943-supernova-explosion-solar-system-formation.html  Elements like Oxygen, Silicon, Iron are all formed in a supernova.    As I understand it, chemistry happens too, on a limited scale, within the nebula, so you have basic building blocks.   Silicates like SO2, Ices/gases like H20 and CO2, but I'll let someone smarter than me give a more complete answer.   Solarsystems don't form out of hydrogen easily because it's too light, it takes a certain amount of heavier elements.  
> **username_2**: @username_1 You're wrong about the first part. Oxygen, Silicon, Iron, are all formed during a star's normal lifecycle, not a supernova. Any element iron or below can be formed during a star's normal lifecycle. A supernova causes the formation of any element Uranium or below (so basically all of them).  
> **username_1**: @username_2  You're right about that, though those elements spread across the galaxy and became part of new solar system formation from the supernova explosion.    My bad.  
> **username_3**: @Zhe  (cc username_2 username_2) You have perpetuated the myth that elements beyond iron are not formed during a star's "normal lifecycle". Ever since the detection of short-lived Technetium in the atmospheres of some giant stars in the1950s we have known otherwise. They do not form by fusion, but by neutron capture.  
> **username_4**: @Donald.McLean and flagger: Flags are **not** for factually incorrect posts or comments. I'm not going to undelete since comments are temporary anyway, but please be advised. In the future, reply to the comment to address the factual errors.  

---

## 2 answers

### Answer by username_5 on 2017-03-16. Score: 2

Stars, especially larger stars, are hot enough at their core to produce significant amounts of heavier elements: Carbon, Nitrogen and Oxygen. When the stars die, some of these elements are returned to the interstellar medium.

The nebula from which stars form contains not only Hydrogen, but also all the other elements found on Earth. The nebula contains the Carbon that is the basis of life, the Nitrogen that forms the atmosphere, the Silicon that makes rocks, and the oxygen that reacts with hydrogen to form water.

Most of the water on Earth was actually brought to the Earth on asteroids after the Earth had formed, see [How did water get on Earth](https://astronomy.stackexchange.com/questions/10277/how-did-water-get-on-earth)

> **Comments:**
> **username_6**: Just to add something here. The reason it is thought that water was brought to Earth rather than always being here is because ice would have condensed considerably farther out than the Earth's orbit in our protoplanetary disk. (past the "snowline" 150 - 170K) https://ay201b.wordpress.com/the-snow-line-in-protoplanetary-disks/ . It is thought to have been brought to earth by asteroids rather than comets because of the D/H ratios shown in the chart referenced by username_5 above.  

---

### Answer by username_7 on 2017-03-18. Score: 2

Usually, when a star dies, it will usually form a planetary nebula or supernova and most of this matter will reach the interstellar medium.

When it collapses due to some disturbance, a protoplanetary disk forms, it will cool off eventually. Once it is low enough temperature to form compounds, usually molecular hydrogen (H2) will form first. Here is something that may help you:
No, H2O cannot exist in stars, but H and O separately can. Hydrogen is the basic building material of the universe, created in the Big Bang. Oxygen is created by nuclear reactions in stars. If you put H and O together in the cold of space, you get H2O. There are enormous amounts of water in space. In fact, nearly all of the oxygen in space is in the form of water or carbon monoxide. Similarly, most the carbon and nitrogen in space are also in their most hydrogenated forms: methane (CH4) and ammonia (NH3).
[(Source)](http://curious.astro.cornell.edu/about-us/101-the-universe/cosmology-and-the-big-bang/general-questions/580-where-did-all-the-water-in-the-universe-come-from-intermediate)
Since water is H2O, it is likely to form because nebulae contain so much hydrogen and some oxygen. The Earth was most likely hit by comets and asteroids that contained water, and when our planet cooled off, we got our oceans.


---

