Porous carbon adsorbents were synthesized from rice husk (RH) via carbonization and physical and chemical activation. Thermal activation of KOH at mass ratios of 1:1, 1:2, 1:3, and 1:4 significantly increased the Brunauer–Emmett–Teller (BET) specific surface area from 32 m2/g for biochar obtained by carbonization and steam activation to 1265.4 m2/g and 1847.3 m2/g for activated samples obtained by carbonization and chemical activation using KOH at a 1:3 and 1:4 RH/KOH ratio, respectively. Adsorption tests confirmed high removal efficiency, achieving up to 91% COD and 94% oil removal from municipal wastewater. Rice husk activated carbon with 1:1 KOH demonstrates selective gas sorption: the highest retention is observed for CO2 (98.4 cm3/g), high sorption for CH4 (18.3 cm3/g), medium for CO (6.7 cm3/g), low for O2 (3.9 cm3/g) and N2 (4.2 cm3/g), minimal for H2 (0.55 cm3/g), while SO2 and NO2 are completely adsorbed. The results demonstrate that KOH impregnation plays a key role in forming a porous structure with a high specific surface area, and the optimal mass ratio for maximum adsorption capacity is 1:4. These data are of practical interest for the development of environmentally friendly sorbents for industrial and environmental applications.