As summer begins to heat up, your compost begins to work its magic. But with an influx of life, animals begin to come out of hibernation. It’s a nuisance when animals knock down your garbage, or feast away at your spring annuals. Your compost isn’t immune to an animal’s mischievous schemes. However, there are ways to keep small animals out of your compost. That way, it can keep doing what it’s supposed to — making fertilizer for your spring garden.

The type of bin matters
If you live in an area with lots of wildlife, a compost pile may not be the best choice. Its open nature makes it susceptible to meddling, so switching to an outdoor compost bin may be best. A compost tumbler is a great option given that it’s enclosed and off the ground. However, you can also use a trash can with a lid, and tightly secure it with a latch or hinge. Alternatively, place a brick on top of the lid for an easy fix (via Solana Center).

Compost placement is also key
Almost as important as the type of bin, where you keep your compost is crucial. Keep it away from your house, fence, or brush pile to deter burrowing animals. It’s also crucial to keep it away from any food sources that wildlife may seek out; this includes pet food, trash cans, bird feeders, fruit trees, vegetable gardens, or any plants that attract animals. Keeping your compost in an open area away from food sources prevents animals, but also supports air flow.

Avoid certain foods in your compost
There are things you shouldn’t put in your compost, but some foods specifically should be avoided to keep animals away. Foods like meat, fish, bones, dairy products, oil, and excessively fatty foods are big red flags when it comes to your compost (via University of Vermont). It’s also crucial to add enough brown material to ensure your compost breaks down, but also conceals food scraps in an open pile. Be sure to also turn your compost regularly to make sure it decomposes, and reduces smells.

Place animal-deterrent plants around it
If your compost bin or pile is in a garden, a fence or tarp may not be the most aesthetically-pleasing. Putting plants that naturally deter animals near your compost is a beautiful solution anyone can try. Fragrant herbs like Russian sage, thyme, garlic, and rosemary keep animals away, while also upping your spice cabinet. Putting plants such as yarrow, lemongrass, daffodils, marigolds, and salvia near the compost also helps keep some animals at bay (via Covenant Wildlife).

Try adding a physical barrier
If you want to keep your tried-and-true compost pile, there are solutions to help animal-proof it. Try lining all sides, including the bottom, with hardware cloth or chicken wire to prevent smaller animals from getting in. Covering your open compost pile is crucial, even if it’s just with a tarp. You can also attach a mesh awning to your pile to create a lid without blocking out the sun or rain. For larger animals (besides bears obviously,) you can fence in your pile for added protection against deer.
