The chemical reactions and pathways involving nitrobenzene (nitrobenzol), a derivative of benzene with an NO2 group attached to the ring. It is a yellow aromatic liquid used in perfumery and manufactured in large quantities in the preparation of aniline.