A tsunami warning system is used to detect tsunamis in advance and issue the warnings to prevent loss of life and damage to property.