Who invented the sun hat?

The first hat with a large brim for protection from the sun appeared in the 18th century. It was a popular hat for women during this time, and was called a 'Shepherdess'.