The invention belongs to the technical field of 
water treatment, and in particular relates to a 
nitrogen-containing 
sewage treatment process and device for synchronously producing 
electricity and recovering a 
nitrogen element. The device comprises a bioelectrochemical 
system and a 
membrane distillation system, wherein the bioelectrochemical 
system comprises six parts, namely a positive 
electrode chamber, a positive membrane, a 
recovery chamber, a negative membrane, a negative 
electrode chamber, an outer circuit. The process comprises the following steps: entering 
nitrogen-containing 
sewage into the positive 
electrode chamber, carrying out 
microorganism anaerobic decomposition on pollutants and transferring electrons to a positive electrode, and further transferring the electrons to a negative electrode through the outer circuit so as to achieve 
electricity production; entering the nitrogen-containing 
sewage into the negative chamber for aerobic treatment, thus converting 
ammonia nitrogen into 
nitrate nitrogen; respectively entering 
ammonium radical in the positive electrode chamber and 
nitrate radical in the negative electrode chamber into the 
recovery chamber through the positivemembrane and the negative membrane under the driving of 
potential difference; and treating water in the 
recovery chamber with the 
membrane distillation system, and refluxing percolate to the recoverychamber, wherein a concentrated liquid is a solution containing high-concentration 
ammonium nitrate and the like, thereby achieving the recovery of the nitrogen element. The process provided by the invention is simple and has high efficiency and good 
economic benefits; and the treatment device is simple in structure, and is convenient for practical application.