A method for manufacturing a structure comprising membranes overhanging cavities, comprises:a) forming cavities opening at a front face of a support substrate, the cavities having a depth and an area, and being spaced apart by a spacing;b) assembling, by way of direct bonding, a donor substrate on the support substrate to seal the cavities under vacuum, the direct bonding being hydrophilic and involving a given number of water monolayers at a contact interface between the substrates; andc) transferring a thin layer from the donor substrate onto the support substrate, the thin layer comprising the membranes.A specific area is defined around each cavity in the plane of the contact interface and is expressed as a function of half of the spacing. The area, the depth of each cavity, and the specific area are defined in step a) to satisfy a particular relationship.