Histone methyltransferases (HMTs) are a group of enzymes that specifically catalyze the methylation of histone proteins. The primary function of these enzymes is to add methyl groups to the lysine and arginine residues of histone tails, which plays a crucial role in the regulation of gene expression and maintaining the structure of chromatin.