The chemical reactions and pathways involving any of the menaquinones, quinone-derived compounds synthesized by intestinal bacteria. Structurally, menaquinones consist of a methylated naphthoquinone ring structure and side chains composed of a variab.