This communication reports the use of light to reversibly constrict or ease the flow of oxygen through a very thin polymer coating. This is achievable by reversibly changing the polymer structure from a dense and rigid film to a loose and soft film.