The synthesis, conformational study and inhibitory properties of diverse indolizidine and quinolizidine iminocyclitols are described. The compounds were chemo-enzymatically synthesized by two-step aldol addition and reductive amination reactions. The aldol addition of dihydroxyacetone phosphate (DHAP) to N-Cbz-piperidine carbaldehyde derivatives catalyzed by L-rhamnulose 1-phosphate aldolase from Escherichia coli provides the key intermediates. The stereochemical outcome of both aldol addition and reductive amination depended upon the structure of the starting material and intermediates. The combination of both reactions furnished five indolizidine and six quinolizidine type iminocyclitols. A structural analysis by NMR and in silico density functional theory (DFT) calculations allowed us to determine the population of stereoisomers with the trans or cis ring fusion, as a consequence of the inversion of configuration of the bridgehead nitrogen. The trans fusion was by far the most stable, but for certain stereochemical configurations of the 3-hydroxymethyl and hydroxyl substituents both trans and cis fusion stereoisomers coexisted in different proportions. Some of the polyhydroxylated indolizidines and quinolizidines were shown to be moderate to good inhibitors against α-L-rhamnosidase from Penicillium decumbens. Indolizidines were found to be moderate inhibitors of the rat intestinal sucrase and of the exoglucosidase amyloglucosidase from Aspergillus niger. In spite of their activity against α-L-rhamnosidase, all the compounds were ineffective to inhibit the growth of the Mycobacterium tuberculosis, the causative agent of tuberculosis.