The atmospheric residue (AR) was pyrolyzed at a number of temperatures (400 to 700 °C) for 90 minutes at a ten °C/min heating charge to supply an upgraded liquid gas and coke. The liquid gas produced at 400 °C had the best API gravity. Thus, its chemical composition was decided by 1HNMR spectroscopy and GC-MS approach. The produced coke was transformed into lively carbon (AC) by way of the KOH-activation route by optimizing the influence of the carbonization interval and temperature, moreover the KOH impregnation ratio, on the yield and the iodine variety of AC. The best AC pattern was produced at 750 °C for 1 h and a 2:1 KOH: coke impregnation ratio. This AC was analyzed for its BET floor space, pore quantity, XRD, FE-SEM, EDX, and FTIR. The BET floor space of the most effective AC was 742.20 m2/g, whereas its imply pore diameter was 1.95 nm, suggesting its microporosity. The AC was examined to get rid of dibenzothiophene (DBT) from mannequin gas and gasoline. The last word elimination of DBT was achieved by using 0.35 g of AC at 40 °C for 30 minutes. In conclusion, the experimental outcomes recommend that this AC can efficiently get rid of DBT from fuels.