A suture insertion device (120) includes a shaft (124), which is adapted to beinserted into a body cavity (154). First and second needles (160) holdrespective first and second ends of a suture thread (122). First and secondneedle guides (130) are attached to the shaft and respectively hold the firstand second needles. The needle guides have a first operative configuration inwhich the needle guides are held parallel to the axis of the shaft forinsertion of the shaft into the body cavity and a second operativeconfiguration in which the needle guides are deployed outward from the shaftwithin the body cavity so as to point the needles in a proximal direction. Anejector (164) is operative to eject the needles from the needle guides in thesecond operative configuration so as to cause the needles to penetrate tissue(156) adjoining the body cavity.