A SABATH Methyltransferase from the moss Physcomitrella patens catalyzes S-methylation of thiols and has a role in detoxification.