Niacin plays an essential role in the activities of various enzymes involved in the metabolism of carbohydrates and fats.