Surge protection works to prevent malfunction as shown on this slide in illustration one, hard failure damage as in illustration two, and to ensure safety as in three. The energy differs with the type of surge, so the designer needs to choose an appropriate surge protection diode for the application.