How does salt get into the oceon?

The oceans are salty because of the weathering of rocks on land. Rainwater, which is naturally slightly acidic, reacts with carbon dioxide in the atmosphere to form carbonic acid. This weak acid then attacks minerals in rocks, releasing various ions, including sodium and chloride, which are the main components of salt. These ions are eventually carried by rivers and streams into the oceans, where they accumulate over time. The process of weathering and erosion continues to replenish the salt content of the oceans, maintaining their salinity.