What were Bernese Mountain Dogs bred for?

What were Bernese Mountain Dogs bred for?
Bernese Mountain Dogs were traditionally bred as working dogs on farms. They pulled carts loaded with farm produce to market, herded livestock (such as cows, sheep, and goats), and acted as watchdogs, alerting farmers to potential threats or intruders.