The main objective of this study was to investigate the effect of biochar on the composting process of the organic fraction of municipal solid waste (OFMSW) under real conditions. Different doses of biochar (1%, 3%, and 5%) were mixed with compost piles to evaluate the variation of temperature, moisture content (MC), organic matter (OM), carbon (C), nitrogen (N), C/N ratio, and heavy metal (HM) contents in comparison with the control treatment (with 0% biochar addition). The results of this study showed that the compost piles combined with different doses of biochar had higher MC. The use of biochar as an additive, even at low doses (1%), was able to increase the compost quality through the reduction of N losses during the composting process. The highest reduction of OM during the composting process was observed in the control pile (without biochar addition) by 48.06%, whereas biochar affected the biodegradability of OM and prevented the reduction of nutrients during the composting process under real conditions. The contents of HMs (Pb, Zn, Ni, Cd, and Cu) showed a significant reduction in all of the compost piles combined with biochar in comparison with the control treatment. Considering that in terms of all compost quality indicators, the piles combined with biochar can regarded as high standard product, the composts obtained from combining the OFMSW with different biochar doses have desirable features to be used as an amendment agent to improve agricultural soil quality.