What were Great Pyrenees bred for?

What were Great Pyrenees bred for?
Great Pyrenees were originally bred to work as livestock guardian dogs in the Pyrenees Mountains. Their primary role was to protect flocks of sheep and other livestock from predators, such as wolves and bears, that roamed the mountainous regions. They would live among the flock, patrolling the perimeter and warding off potential threats.