Flooding is direct exposure to the phobic stimulus when the sufferer is encouraged to remain in the situation until their anxiety peaks, which can't be prolonged and will eventually decrease. This usually happens in vivo. As they can't leave, they cannot negatively reinforce the phobia and a new conditioned response is created where the conditioned stimulus illicits calm. They learn that the stimulus is harmless as they can't avoid it, which is known as extinction.