Using ab initio calculations, we demonstrate the strong influence of valence electron concentration (VEC) on the local atomic structure and electronic properties of Mo 6 S 9−x I x (x = 0−9) nanowires (NWs). We find new atomic models of the NWs with unique decoration of S/I atoms that are more stable than reported earlier. The electronic and mechanical properties of these NWs are in good agreement with experiments. Further we tuned VEC by either varying the number of I atoms or adding S/Li atoms to obtain semiconducting Mo 6 S 3 I 6 , Mo 6 S 2 I 8 , Li 6 Mo 6 S 9 , and Li 3 Mo 6 S 6 I 3 NWs, all of which have VEC of 24 and isolated Mo 6 octahedral units, as observed in bulk cluster compounds. These results suggest that VEC is the thumb rule to design and tune the atomic structure and electronic properties of Mo−S−I cluster based nanostructures.