In hydrotreating, the presence of catalysts allows for the efficient removal of impurities from hydrocarbons by facilitating hydrogenation reactions. The process typically occurs in a high-pressure reactor where hydrogen gas is introduced. The catalyst, usually a metal supported on alumina, helps in breaking down sulfur, nitrogen, and metal-containing compounds, leading to cleaner and more stable products.