5-methylcytosine is formed by the action of DNA methyltransferase on CpG sites. It can undergo spontaneous deamination to form thymine.