The main mechanisms of betaine are either its usage as a methyl donor, where it either directly donates a methyl group to reduce homocysteine into L-methionine (seen as cardioprotective) or it increases bodily levels of S-Adenosyl Methionine (SAMe) or active folate molecules, and those two can then go on to donate methyl groups to other parts of the body.
It is known as a 'betaine' molecule ('betaine' being a category of molecules), but because it was the first dietary betaine discovered (from beetroot) and it is the most popular molecule referred to as a betaine, the terms ‘trimethylglycine’ and ‘betaine’ are used interchangeably. Trimethylglycine (TMG) is a molecule which, structurally, is the amino acid Glycine with three methyl groups attached to it.