From your description—hard, foam-like, brown structure attached to a fence post—the most likely possibilities are:
🟤 1. Praying mantis egg case (very likely)
This is called an ootheca.
- Looks like a foamy blob that hardened into tan/brown foam
- Often glued to wood, fences, branches
- Feels light but solid and slightly spongy
- Commonly mistaken for fungus or dirt
👉 Belongs to the insect Praying mantis
Important:
It contains eggs that hatch into hundreds of tiny mantises in warm weather. They are actually beneficial insects because they eat flies, mosquitoes, and pests.
🟤 2. Mud dauber wasp nest (also possible)
- Made of mud but can look rough and foam-like when dry
- Usually has small tube shapes or stacked cells
- Often attached to walls, posts, ceilings
🟤 3. Termite mud shelter tubes (less likely if “foam-like”)
- Earthy brown tunnels running along wood
- Usually look more like dried soil lines, not foam
⚠️ What you should do right now
- ❌ Don’t crush it yet
- ❌ Don’t spray random chemicals on it
- 👀 Check if it’s smooth, foamy, and single blob → likely mantis egg case
👍 If it IS a mantis egg case
Best option:
- Leave it until spring → it will hatch naturally
- Or relocate it carefully to a garden plant
They are completely harmless to humans.
❓ Quick check (helps confirm)
Tell me:
- Is it oval like a small puff / foam lump?
- Or does it have holes/tubes or layered mud?
- Rough size (coin-sized, golf ball, etc.)
If you can also share a photo, I can identify it with near certainty in one look.