Sialic acids (Sias) are abundant terminal modifications of protein-linked glycans. A unique feature of Sia, compared with other monosaccharides, is the formation of linear homo-polymers, with its most complex form polysialic acid (polySia). Sia and polySia mediate diverse biological functions and have great potential for therapeutic use. However, technological hurdles in producing defined protein sialylation due to the enormous structural diversity render their precise investigation a challenge. Here, we describe a plant-based expression platform that enables the controlled in vivo synthesis of sialylated structures with different interlinkages and degree of polymerization (DP). The approach relies on a combination of stably transformed plants with transient expression modules. By the introduction of multigene vectors carrying the human sialylation pathway into glycosylation-destructed mutants, transgenic plants that sialylate glycoproteins in α2,6- or α2,3-linkage were generated. Moreover, by the transient coexpression of human α2,8-polysialyltransferases, polySia structures with a DP >40 were synthesized in these plants. Importantly, plant-derived polySia are functionally active, as demonstrated by a cell-based cytotoxicity assay and inhibition of microglia activation. This pathway engineering approach enables experimental investigations of defined sialylation and facilitates a rational design of glycan structures with optimized biotechnological functions.