The short answer is to make your bin hard to open, hard to tip, and boring to smell. Raccoons are strong and clever, and rats can squeeze through tiny gaps, so a standard bin with a loose lid is basically an invitation. Start with a can that has a tight-fitting, lockable lid. If you already have a standard bin, add strong latches, a metal lock, or a heavy-duty bungee cord, but check local rules first because some haulers require bins to be accessible. For raccoons, look for a lid that locks down at two points or a metal can with a secure handle. Rats are more about gaps, so repair cracks, block holes with metal mesh and sealant, and never leave a bag sitting beside the bin.
Keep food smells down. Put trash in sturdy bags, tie them tightly, and double-bag greasy or smelly food waste if needed. Rinse the bin regularly and use a little vinegar or baking soda to neutralize odors. Do not put loose food scraps directly in the can. If you compost, use a rodent-proof bin and avoid adding meat, dairy, or oily foods.
Store bins smart. Bring them out on pickup morning instead of the night before, and keep them in a garage, shed, or secure enclosure when possible. If they must stay outside, use a rack or cabinet and strap the lid shut. Avoid stacking bags on top or letting the bin overflow, since overflow is one of the fastest ways to attract pests.
Make the area less friendly too. Remove fallen fruit, pet food, birdseed, and standing water. Clear ivy, woodpiles, and clutter where rats can hide. A motion-activated light or camera can help you spot activity, but it will not replace a secure lid.
Talk to neighbors if the problem is block-wide. Pests move between properties, so one loose bin can undermine everyone else’s efforts. Ask neighbors to secure their bins and report overflowing public bins.
Avoid toxic shortcuts. Do not use poison casually, especially where pets and children are around, and avoid homemade repellents that may harm wildlife or be illegal. The most effective approach is consistency: secure lids, clean bins, bag waste tightly, and reduce food and hiding spots. Do that for a few weeks, and rats and raccoons will usually move on to easier targets.