Designing a molecule that acts as both an initiator for a photo-controlled radical polymerization and as a reactive end-group for polymer chain crosslinking has enabled the preparation of polymeric gels whose properties can be controlled by exposure to sunlight.