Detonators contain a small amount of sensitive primary explosive that, when initiated (e.g., by electrical signal, friction, or shock), creates a shock wave powerful enough to set off the less sensitive but more powerful main explosive charge.