Caffeine is a purine alkaloid assembled from xanthosine, which is methylated to 7-methylxanthosine and then converted through theobromine to caffeine. Tryptophan and tyrosine are the precursors of indole and isoquinoline alkaloids, while ornithine feeds the tropane and pyrrolizidine alkaloids. Assuming every alkaloid begins with an amino acid is the trap, since purine alkaloids start from a nucleotide.