Why is the Ocean Salt Water?

The ocean is salt water because of the erosion and breakdown of soil and rocks. Rocks are primarily made from sodium and chlorine which then come together to form sodium chloride in the ocean.