Ent-kaurene (KS) synthases and ent-kaurene-like (KSL) synthases are involved in the biosynthesis of phytoalexins and/or gibberellins which play a role in plant immunity and development. The relationship between expression of five synthase genes (HvKSL1, HvKS2, HvKS4, HvKS5, HvKSL4) and plant colonization by the endophytic fungus Piriformospora indica was assessed in barley (Hordeum vulgare). The KS gene family is differently up-regulated at 1, 3 and 7 day after P. indica inoculation. By comparison, the HvKSL4 gene expression pattern is more significantly affected by UV irradiation and P. indica colonization. The characterizations of two silencing lines (HvKSL1-RNAi, HvKSL4-RNAi) also were analyzed. HvKSL1-RNAi and HvKSL4-RNAi lines in the first generation lead to less dark green leaves and slower plant development. Further, reduced spikelet fertility in progenies of RNAi plants heterozygous for HvKSL1 were observed, but not for HvKSL4. T2 generation of HvKSL1-RNAi line showed semi-dwarf phenotype while the wild type phenotype could be restored by applying GA3. Silencing of HvKSL4 and HvKSL1 resulted in reduced colonization by P. indica especially in the HvKSL1-RNAi line. These results probably suggest the presence of two ent-KS synthase in barley, one (HvKSL1) that participates in the biosynthesis of GAs and another (HvKSL4) that is involved in the biosynthesis of phytoalexins.