Xylocopa valgais extinct in Latvia and Lithuania and is critically endangered in Poland, and its distribution in the Ejina Oasis, China, is currently unknown. Studies on the biology ofX.valgaare scarce, and thus, conservation efforts for this species are currently limited. Here, we investigated the morphological characteristics, nest architecture, nest structure and food type of offspring in the nest cells ofX.valga. This research was conducted in thePopulus euphraticaforest reserve in the Ejina Oasis, China, between July 2014 and June 2019. The primary investigation methods included visual inspection, photography, observation and measurements of nest anatomy, and examination of pollen stores by microscopy. We found that in the Ejina Oasis, China,X.valgabuilds its nests in the dead wood ofP.euphratica.X.valgais univoltine. Its lifestyle varies from solitude to symbiosis. When many females nest near each other, several females may share a single nest entrance, based on which they build their own cells. The nests are branched. According to our results, there is a significant difference between the thickness of the inner cell partition and that of the outermost cell partition in the branched tunnel. In theP.euphraticaforest area, the food for the progeny ofX.valgais mainly composed of the pollen and nectar ofSophora alopecuroideandPopulus euphratica. Therefore,X.valgaandS.alopecuroidesexhibit close ecological interactions in theP.euphraticaforest ecosystem.