NOVELTY - The device comprises a sequencing batch reactor (SBR) comprising a grid, an algae depositing unit, an adjusting tank, a light reactor unit and a filter unit. The light reactor unit is connected with the SBR via a pump, where the SBR passes through a first settling pond. The light reactor unit is connected with a sedimentation tank through a first pipeline mixer, where the light reactor is made of non-light tight material. The sedimentation tank is connected with a filter unit via the pump. The pipeline mixer is further connected with an agent flocculating tank.    USE - The device is useful for treating nitrogen and phosphorus containing municipal waste water (claimed) to produce bio-fuels.    ADVANTAGE - The device stably treats the nitrogen and phosphorus containing municipal waste water and reduces carbon dioxide emission in the waste water in an economical and environment-friendly manner.    DETAILED DESCRIPTION - The device comprises a sequencing batch reactor (SBR) comprising a grid, an algae depositing unit, an adjusting tank, a light reactor unit and a filter unit. The light reactor unit is connected with the SBR via a pump, where the SBR passes through a first settling pond. The light reactor unit is connected with a sedimentation tank through a first pipeline mixer, where the light reactor is made of non-light tight material. The sedimentation tank is connected with a filter unit via the pump. The pipeline mixer is further connected with an agent flocculating tank. The SBR is provided with a fluorescent lamp or an LED as a light source having an illumination intensity of 4000-80001x. The bottom of the SBR is provided with an aeration device and a photo-reactor comprising bauxite algae, where the photo-reactor passes through a second first settling pond, the photo-reactor has a diameter of 15-20 cm and a height of 150-200 cm. The lower end of the SBR is connected with a light reactor. The photo-reactor is connected with light reactor arrays, which are connected with each others in series. An INDEPENDENT CLAIM is included for a method for treating nitrogen and phosphorus containing municipal waste water.