Coffee grounds have been known to repel dogs. If you’re trying to keep your dog away from certain spots in your garden, you could try sprinkling some fresh coffee grounds on the grass. However, coffee could be bad for your dog if it eats a lot of it, so apply sparingly!