Topological solitons have knotted continuous field configurations embedded in a uniform background, and occur in cosmology, biology, and electromagnetism. However, real-time observation of their morphogenesis and dynamics is still challenging because their size and timescale are enormously large or tiny. Liquid crystal (LC) structures are promising candidates for a model-system to study the morphogenesis of topological solitons, enabling direct visualization due to the proper size and timescale. Here, a new way is found to rationalize the real-time observation of the generation and transformation of topological solitons using cholesteric LCs confined in patterned substrates. The experimental demonstration shows the topologically protected structures arise via the transformation of topological defects. Numerical modeling based on minimization of free energy closely reconstructs the experimental findings. The fundamental insights obtained from the direct observations pose new theoretical challenges in understanding the morphogenesis of different types of topological solitons within a broad range of scales.