Guard retention is a general term for techniques used to maintain guard (a defensive/offensive position from the bottom) without losing it when the top opponent attempts to pass the guard. It is not a single technique but a combination of movements such as framing, hip movement, leg re-guarding, and inversion (upside-down movements).
Players with high retention ability are feared as "impassable walls." No matter the angle from which the opponent tries to pass, they use their legs to re-establish distance, frames to maintain space, and invert as needed to recover position.
Guard retention is also "offensive defense." The ideal is to prevent the pass while transitioning into a sweep or submission the moment the opponent's balance is broken. In recent years, retention has become more systematized, with a common approach being to pre-build a "map" of how to recover from specific pass attempts.