A microbial electrolysis cell, though considered as a promising, environmentally friendly technology for hydrogen production, suffers from concomitant production of methane. The high hydrogen/methane ratio at the initial operation stage decreases with time. Here we report for the first time the photoassisted microbial electrolysis cell (MEC) for persistent hydrogen production using polyaniline nanofibers as a cathode. Under 0.8 V external bias and laboratory fluorescent light illumination in a single-chamber MEC, continuous hydrogen production from acetate at a rate of 1.78 mH2 3 m-3 d-1 with 79.2 % overall hydrogen recovery was achieved with negligible methane formation for six months. Energy efficiencies based on input electricity as well as input electricity plus substrate were 182 and 66.2 %, respectively. This was attributed to the p-type-semiconductor characteristics of polyaniline nanofibers in which photoexcited electrons are used to reduce protons at the surface and holes are reduced with electrons originating from acetate oxidation at the anode. This method can be extended to microbial wastewater treatment for hydrogen production.