The formation of well-designed synthetic compartments or membraneless organelles for applications in synthetic biology and cellular engineering has aroused enormous interest. However, establishing stable and robust intracellular compartments in bacteria remains a challenge. Here, we use the structured DIX domains derived from Wnt signaling pathway components, more specifically, Dvl2 and Axin1, as building blocks to generate intracellular synthetic compartments in Escherichia coli. Moreover, the aggregation behaviors and physical properties of the DIX-based compartments can be tailored by genetically embedding a specific dimeric domain into the DIX domains. Then, a pair of interacting motifs, consisting of the aforementioned dimeric domain and its corresponding binding ligand, was incorporated to modify the client recruitment pattern of the synthetic compartments. As a proof of concept, the human milk oligosaccharide lacto-N-tetraose (LNT) biosynthesis pathway was selected as a model metabolic pathway. The fermentation results demonstrated that the co-compartmentalization of sequential pathway enzymes into intracellular compartments created by DIX domain, or by the DIX domain in conjunction with interacting motifs, prominently enhanced the metabolic flux and increased LNT production. These synthetic protein compartments may provide a feasible and effective tool to develop versatile organelle-like compartments in bacteria for applications in cellular engineering and synthetic biology.