The most common biological treatment in a municipal waste water today is the activated sludge process (ASP). A possible substitution of the ASP could be the utilization of microalgae for the reduction and/or transformation of nutrients. The produced algal biomass can be converted to biofuel by anaerobic digestion. In the present study, co-digestion of primary sludge and microalgae are studied in semi-continuous tests at mesophilic and thermophilic conditions. Two reactors fed by waste activated sludge and primary sludge are used as reference. The results show that thermophilic digestion of microalgae and primary sludge is less attractive since the methane yield is approximately the same as the mesophilic digestion. In mesophilic conditions the results are approximately the same in the two pilot reactors and also comparable with the mesophilic full-scale digesters in Västerås, Sweden.