What were Corgis bred for?

What were Corgis bred for?
Corgis were originally bred for herding cattle and other livestock. They were prized for their agility and low stature, which allowed them to nip at the heels of cattle without being kicked. Their intelligence and ability to work independently made them effective herders.