Self-locking relay lets you trigger an an alarm with a push of a button. Subsequent pushes of the button have no effect and alarm stays on.
Challenge for you - design a circuit where opening a door triggers an alarm. The alarm should stay on even after the door is closed.