A dehydrogenase is an enzyme that oxidizes a substrate by transferring hydrogen to an acceptor, usually NAD/NADP or a flavin coenzyme.