A hydrotreating unit has been analyzed using the notion of exergy. The analysis has been based on the simulation results with the aid of real operating data. Driving and material exergy losses have been separately defined and quantified. Locations and the reason of major exergy losses have been pinpointed and improvement strategies have been suggested. It has been noted that the exergy analysis can provide a sound base for adopting the concept of industrial ecology and developing loss prevention schemes.