5-Methyltetrahydrofolate (5-MTHF) is the predominant folate form in human plasma, which has been widely used as a nutraceutical. However, the microbial synthesis of 5-MTHF is currently inefficient, limiting green and sustainable 5-MTHF production. In this study, the Generally Regarded As Safe (GRAS) microorganism Bacillus subtilis was engineered as the 5-MTHF production host. Three precursor supply modules were first optimized by modular engineering for strengthening the supply of guanosine-5-triphosphate (GTP) and p-aminobenzoic acid (pABA). Next, the impact of genome-wide gene expression on 5-MTHF biosynthesis was evaluated using transcriptome analyses, which identified key genes for 5-MTHF production. The effects of potential genes on 5-MTHF synthesis were verified by observing the genes' up-regulated by strong promoter P 566 and those down-regulated by inhibition through the clustered regularly interspaced short palindromic repeat interference (CRISPRi). Finally, a key gene for improved 5-MTHF biosynthesis, comGC, was integrated into the genome of modular engineered strain B89 for its overexpression and facilitating efficient 5-MTHF synthesis, reaching 3.41 ± 0.10 mg/L with a productivity of 0.21 mg/L/h, which was the highest level achieved by microbial synthesis. The engineered 5-MTHF-producing B. subtilis developed in this work lays the foundation of further enhancing 5-MTHF production by microbial fermentation, which can be used for isolation and purification of 5-MTHF as food and nutraceutical ingredients.