The invention relates to a self-assembling device for pest control, the structure of which allows it to be supported on a tree branch, or instead on a natural or man-made straight support, comprising a roof and a capsule, separating stops, a gradual adjustment system, optionally a separating screen, and connectors that allow the device to be manufactured as a single hinged part, facilitating the production, storage, transport and installation of the device. Said device makes it possible to release the contents of the capsule, said contents ranging from beneficial insects to products or substances that help with pest control.