We performed functional analysis of recombinant enzymes and analysis of isoprenoid metabolites in Bacillus clausii to gain insights into the biosynthesis of rare terpenoid groups of sesterterpenes, head-to-tail triterpenes, and sesquarterpenes. We have identified an (all-E)-isoprenyl diphosphate synthase (E-IDS) homologue as a trifunctional geranylfarnesyl diphosphate (GFPP)/hexaprenyl diphosphate (HexPP)/heptaprenyl diphosphate (HepPP) synthase. In addition, we have redefined the function of a tetraprenyl-β-curcumene synthase homologue as that of a trifunctional sesterterpene/triterpene/sesquarterpene synthase. This study has revealed that GFPP, HexPP, and HepPP, intermediates of two isoprenoid pathways (acyclic terpenes and menaquinones), are biosynthesized by one trifunctional E-IDS. In addition, GFPP/HexPP and HepPP are the primary substrates for the biosynthesis of acyclic terpenes and menaquinone-7, respectively.