A hat includes a main part which includes a visor, a peripheral portion and multiple panels formed thereto. The panels extend from the peripheral portion. A protrusion protrudes from the visor and contacts the outside of the peripheral portion. Multiple first holes are respectively defined through each of two lateral sides of each panel, the bottom side of the peripheral portion and the inner side of the visor. Multiple ropes extend through the first holes to connect the panels, the peripheral portion and the visor to form the hat.