Here, we report on the fabrication of light-switchable and light-responsive membranes based on graphene oxide (GO) modified with azobenzene compounds. Azobenzene and para-aminoazobenzene were grafted onto graphene oxide layers by covalent attachment/condensation reaction prior to the membranes’ assembly. The modification of GO was proven by the UV-vis, IR, Raman and photoelectron spectroscopy. The membrane’s light-responsive properties were investigated in relation to the permeation of permanent gases and water vapors under UV and IR irradiation. Light irradiation does not influence the permeance of permanent gases, while it strongly affected that of water vapors. Both switching and irradiation-induced water permeance variation is described, and they were attributed to over 20% of the initial permeance. According to in situ diffraction studies, the effect is ascribed to the change to the interlayer distance between the graphene oxide nanoflakes, which increases under UV irradiation to ~1.5 nm while it decreases under IR irradiation to ~0.9 nm at 100% RH. The last part occurs due to the isomerization of grafted azobenzene under UV irradiation, pushing apart the GO layers, as confirmed by semi-empirical modelling.