A cofactor is a non-protein chemical compound or metallic ion that is required for an enzyme's biological activity. It is an essential component that helps facilitate and enhance the catalytic function of an enzyme, enabling it to carry out its specific chemical reactions within the body.