How do moray eels defend themselves?

They will fight back and bite the enemy. They will also shock the enemy with electricity.