The coherent infrared and THz sources driven by the superconducting electron accelerator ELBE are described. The present status of the facility is summarized and a few scientific highlights are mentioned. Finally plans for a successor facility (Dresden Advanced Light Infrastructure, DALI) are outlined along with the most important scientific and technological challenges.Graphical abstract