Knifefish generate electricity using specialized organs derived from their muscle cells, or in the case of ghost knifefishes from their spinal nerve cells. They use these electric fields to navigate, communicate, detect prey, and – in the case of electric eels – stun their prey.