In the United Kingdom, magpies are protected under the Wildlife and Countryside Act 1981. This legislation makes it an offence to intentionally or recklessly injure or kill a magpie, disturb their nests, or take, damage, or destroy their eggs. The law reflects a broader effort to conserve wild bird populations and prevent unnecessary harm.