It's something that not even your Speedo swim cap can fully prevent: Chlorine damage to your hair. If you swim competitively or just spend time in the pool a few hours a week, your hair will be exposed to chlorine and other chemicals a bit more than you would like.
Here's what you can do to prevent damage, and fix hair that has already been affected:
Before getting in the pool
Putting on a swim cap provides some protection against chlorine, but it's even better to create an additional barrier. First, you could simply step in the shower and run water over your hair. When your hair is already wet, it will take on less water and slow down the process of chlorine absorption. Another option would be to coat your hair in an oil-based conditioner before putting on your swim cap. Chlorine strips hair of its natural oils, so coating your strands beforehand may be able to stop this from happening.
After leaving the water
If you don't have time to fully wash your hair, you should at least give it a thorough rinsing after getting out of the water. Once you get home, wash your hair with a special shampoo, like TRISWIM that can remove chlorine and other other chemicals found in pool water.
There are also several home remedies that you can try to keep your hair healthy. Weak acids like vinegar and citrus can remove impurities from your strands. Another common option, club soda, can lift chlorine from the hair as well.