Light is fundamental to life on earth. Therefore, nature has evolved a multitude of photoreceptors that sense light across all kingdoms. This natural resource provides synthetic biology with a vast pool of light-sensing components with distinct spectral properties that can be harnessed to engineer novel optogenetic tools. These devices enable control over gene expression, cell morphology and signaling pathways with superior spatiotemporal resolution and are maturing towards elaborate applications in basic research, in the production of biopharmaceuticals and in biomedicine. This article provides a summary of the recent advances in optogenetics that use light for the precise control of biological functions in mammalian cells. © 2013 The Royal Society of Chemistry.