The chemical reactions and pathways involving any disaccharide, sugars composed of two monosaccharide units.