Something that deters: a deterrent to theft.
A retaliatory means of discouraging enemy attack: a nuclear deterrent.