The purpose of a cock ring is to prevent the backflow of the blood, which keeps the penis hard for longer than it otherwise would.