In this study, the sludge of second settling tank of the activated sludge process in Tehran refinery was used. At the first, RBC was prepared and 90% volume of its cylinders was filled with Kaldnes media. Then, some of the sludge plus some water was poured into the bioreactor so that the mixed liquor suspended solids (MLSS) in bioreactor became 1500 mg/l.