Spiking neural networks, which mimic the structure and function of a natural nervous system, are powerful, fast, and energy-efficient. One key challenge is how to train such complex systems. An interdisciplinary research team has now developed and successfully implemented an algorithm that achieves such training. It can be used to train spiking neural networks to solve complex tasks with extreme energy efficiency.