Swimming caps are a type of headgear that is worn by swimmers to protect their hair from water.