Salt in the ocean comes from rocks on land. The rain that falls on the land contains some dissolved carbon dioxide from the surrounding air. This causes the rainwater to be slightly acidic due to carbonic acid (which forms from carbon dioxide and water). As the rain erodes the rock, acids in the rainwater break down the rock. This process creates ions. These ions are carried away in runoff to streams and rivers and, ultimately, to the ocean. Many of the dissolved ions are used by organisms in the ocean and are removed from the water. Others are not used up and are left for long periods of time where their concentrations increase over time.