Going to the beach can improve your immune system This is especially beneficial for those with weakened immune systems, as swimming in the ocean can help improve their overall health. Additionally, the minerals in the ocean water, such as magnesium and potassium, can also have a positive impact on the immune system.