What were Collies bred for?

What were Collies bred for?
Collies were originally bred as herding dogs in Scotland. They were prized for their intelligence, agility, and ability to work closely with shepherds to manage and control livestock, particularly sheep. The name “Collie” is believed to have been derived from the Scottish Gaelic word “coll,” which means “useful” or “faithful.”