In this presentation we report the fabrication of mechanically deformable semiconductor devices on various plastic and elastic substrates. Particularly, we describe organic thin-film and electrochemical transistors with large ductility employing a combination of properly designed polymeric building blocks and tuning the semiconductor film morphology. Furthermore, we report our latest work on stretchable inorganic (perovskite) and organic solar cells using a combination of new photoactive materials, a combination of more ductile electrodes and interlayers as well as an innovative way to pixelate the inorganic layer. These devices achieve large stretchability (>50% strain), large power conversion efficiency (>15-20%) and great stability. Finally, we demonstrate their integration into textiles.