Complex sentence: They were mainly used as tags for cattle, which were "painted" using a special needle.
Split into simpler sentences: They were mainly used as tags for cattle. Cattle were "painted" using a special needle.