The cloning and functional expression of Mycobacterium tuberculosis Rv3377c in Escherichia coli revealed that this gene encodes the diterpene cyclase for producing (+)-5(6),13-halimadiene-15-ol, which accepts geranylgeranyldiphosphate as the intrinsic substrate.