Beetles and carpenter ants burrow into dead wood, then birds eat the insects. This leaves perfect chambers for cavity-nesting solitary bees to lay their eggs.
To create a habitat for native bees, leave or place stumps, logs, and branches in your yard.