Scare them. A dog or cat may keep squirrels out of your yard, particularly if your dog chases squirrels.
If you don't have a cat or dog, you can place plastic owls around your property on elevated surfaces such as fence posts or the roof to frighten squirrels away.