Nature Materials, Published online: 05 September 2025; doi:10.1038/s41563-025-02329-0Using visible-light-induced crosslinking, a local stiffening approach is developed for ex vivo mouse and human lung tissue as an early lung injury model, directing epithelial cell mechanosensing, differentiation and nascent protein deposition.