To safely use pesticides or fertilizers in your garden with a dog, opt for pet-friendly products labeled as safe. Apply them according to the manufacturer's instructions and keep your dog away from treated areas until they're dry or absorbed. Consider using natural alternatives like neem oil or diatomaceous earth. After application, thoroughly rinse any surfaces your dog might come into contact with, such as plant foliage or soil. Additionally, store chemicals in secure containers out of your dog's reach to prevent accidental ingestion or exposure. Regularly monitor your dog for any signs of illness or discomfort after gardening activities.