Carpenter bees (the genus Xylocopa in the subfamily Xylocopinae) are large bees distributed worldwide. There are some 500 species of carpenter bee in 31 subgenera. Their name comes from the fact that nearly all species build their nests in burrows in dead wood, bamboo, or structural timbers (except those in the subgenus Proxylocopa, which nest in the ground).
Carpenter bees are traditionally considered solitary bees, though some species have simple social nests in which mothers and daughters may cohabit. However, even solitary species tend to be gregarious, and often several will nest near each other. It has been occasionally reported that when females cohabit, there may be a division of labor between them, where one female may spend most of her time as a guard within the nest, motionless and near the entrance, while another female spends most of her time foraging for provisions.
Carpenter bees make nests by tunneling into wood, vibrating their bodies as they rasp their mandibles against the wood, each nest having a single entrance which may have many adjacent tunnels. The entrance is often a perfectly circular hole measuring about 16 millimetres (0.63 in) on the underside of a beam, bench, or tree limb. Carpenter bees do not eat wood. They discard the bits of wood, or re-use particles to build partitions between cells. The tunnel functions as a nursery for brood and storage for the pollen/nectar upon which the brood subsists. The provision masses of some species are among the most complex in shape of any group of bees; whereas most bees fill their brood cells with a soupy mass, and others form simple spheroidal pollen masses, Xylocopa form elongate and carefully sculpted masses that have several projections which keep the bulk of the mass from coming into contact with the cell walls, sometimes resembling an irregular caltrop. The eggs are very large relative to the size of the female, and are some of the largest eggs among all insects.