According to Memorials.com, whether or not a deceased pet can be buried in a yard depends largely on local laws. Grieving pet owners should also take into account whether or not they own or rent the home; if it is a rental, the landlord should be consulted prior to burial, even if local law allows for pets to be buried in residential yards. If part of a homeowners' association, the owner should consult the association's rules and regulations as well.
When burying a pet, the grave should be sufficiently deep so that other animals are unable to dig up the pet and scavenge the grave. In addition to checking for both state and local codes regarding the burial of pets, it is important to avoid utility lines when digging the pet's grave.