Researchers are engineering synthetic hydrogels that replicate dynamic biological behaviors like heartbeat-like motion and photosynthesis.