The clothes rail for the wardrobe relates to the technical field of clothes rails, and comprises a clothes rail body, clothes hanging plates, spacing blocks, mounting plates, mounting blocks, adjusting grooves and blocking mechanisms, mounting holes are formed in the inner walls of the mounting blocks, the adjusting grooves are formed in the outer walls of the mounting plates, sliding rods are mounted on the inner walls of the adjusting grooves, and the blocking mechanisms are arranged on the inner walls of the sliding rods. A sliding block is installed on the outer wall of the sliding rod in a surrounding mode, a hemispherical block is installed on the outer wall of the sleeve rod body, multiple sets of hemispherical grooves are formed in the inner wall of the adjusting groove, the blocking mechanism comprises a rotating screw groove, a rotating screw rod and a rotating block, the rotating screw groove is formed in the inner wall of the adjusting groove, and a blocking block is installed on the outer wall of the rotating screw rod. By installing the adjusting mechanism, the clothes rail body is firstly installed, the clothes rail body is pulled according to needs to enable the sliding block to move on the sliding rod, the clothes rail body is preliminarily fixed, the stopping block is attached to the bottom of the sliding block, and the situation that due to the fact that clothes are too heavy, the sliding block moves is avoided.