Environment-adaptive power generation can play an important role in next-generation energy conversion. Herein, we propose a moisture adsorption-desorption power generator (MADG) based on porous ionizable assembly, which spontaneously adsorbs moisture at high RH and desorbs moisture at low RH, thus leading to cyclic electric output. A MADG unit can generate a high voltage of similar to 0.5 V and a current of 100 mu A at 100% relative humidity (RH), delivers an electric output (similar to 0.5 V and -50 mu A) at 15 +/- 5% RH, and offers a maximum output power density approaching to 120 mW m(-2). Such MADG devices could conduct enough power to illuminate a road lamp in outdoor application and directly drive electrochemical process. This work affords a closed-loop pathway for versatile moisture-based energy conversion.