The invention relates to an ecological toilet, which includes a base, a main body, a door, a photovoltaic panel and a plurality of toilet sitting devices. Each toilet sitting device includes a toiletbowl, a discharge pipe, a feces-urine separator, a flushing mechanism and a fermentation mechanism, each fermentation mechanism includes a feces feeding pipe, a fermentation box, a conveying pump, a feces discharging pipe, a water conveying assembly, a rotating assembly, a spraying pipe, a stirring assembly and a plurality of nozzles, each flushing mechanism includes a flushing assembly and a collecting assembly, each flushing assembly includes a water tank, a quantitative assembly and a deodorant tank, and each quantitative assembly includes a quantitative tube, a lifting unit, a sealing plate, a liquid extraction tube and a liquid conveying tube. According to the ecological toilet, feces is stirred through the fermentation mechanism and kept moist, a fertilizer is convenient to produce for farm irrigation, and solidification blockage is avoided; and in addition, separated urine is properly applied through the flushing mechanisms, after the proper amount of a deodorant is extracted for purification and deodorization, the urine is used for flushing the toilet bowls, recycling is achieved, and thus the practicability of the ecological toilet is improved.