Using the first-principles plane-wave pseudopotential method within density functional theory, we have systematically investigated structural, electronic, and mechanical properties of M 2 Y 6 X 6 , Y 6 X 6 ͑X =Se,Te,S; Y = Mo, Cr, W; and M =Li,Na͒ nanowires and bulk phase of M 2 Y 6 X 6 . We found that not only Mo 6 X 6 , but also transition metal and chalcogen atoms lying in the same columns of Mo and Se can form stable nanowires consisting of staggered triangles of Y 3 X 3 . We have shown that all wires have nonmagnetic ground states in their equilibrium geometry. Furthermore, these structures can be either a metal or semiconductor depending on the type of chalcogen element. All Y 6 X 6 wires with X = Te atom are semiconductors. Mechanical stability, elastic stiffness constants, breaking point, and breaking force of these wires have been calculated in order to investigate the strength of these wires. Ab initio molecular dynamic simulations performed at 500 K suggest that overall structure remains unchanged at high temperature. Adsorption of H, O, and transition metal atoms like Cr and Ti on Mo 6 Se 6 have been investigated for possible functionalization. All these elements interact with Mo 6 Se 6 wire forming strong chemisorption bonds, and a permanent magnetic moment is induced upon the adsorption of Cr or Ti atoms. Molybdenum selenide-type nanowires can be alternative for carbon nanotubes, since the crystalline ropes consisting of one type of ͑M 2 ͒Y 6 X 6 structures can be decomposed into individual nanowires by using solvents, and an individual nanowire by itself is either a metal or semiconductor and can be functionalized.