Anthocyanin is a kind of flavonoid which mainly exists in plants. It has strong biological activities such as anti-cancer and anti-oxidation, and is widely used in the field of nutrition and health care. Most anthocyanins are extracted directly from plants by physical or chemical means, but the yield is low, and the extracted anthocyanins are mostly mixtures due to the restrictions of time, region and season. Biosynthesis of anthocyanins have attracted much attention by researchers worldwide in recent years. As the biosynthesis of anthocyanins can be controlled artificially and the purity of the obtained products is high, it has been widely studied. Anthocyanins cannot exist stably in the environment, and need to be modified by glycosylation, acylation and methylation to increase their stability. The modified anthocyanins can be synthesized by microorganisms and significant color changes can be seen in the medium. The biosynthesis and modification of anthocyanins were reviewed in this paper, and the preparation technology of anthocyanin synthesis from plants and microorganisms was briefly introduced, the factors affecting anthocyanin synthesis were analyzed, and finally the future research direction of anthocyanin was predicted.