The invention belongs to the field of ship maintenance and manufacture, and relates to a specialized robot special for removing rust and spraying paint for interior space of a steel structure of a cabin, which has a simple structure, can meet the usage of different sized cabins of various ships, can conveniently achieve conversion of working faces of a three-dimensional space when the robot removes rust and sprays paint, has good integral mobility, is easy to maintain, and has lower manufacturing cost. Illustrated by attached drawings, figure one is a structural schematic diagram of the specialized robot for removing rust and spraying paint during maintenance and manufacture of the cabins of the ships. A spray gun 1 has rotating function for drawing a circle and is connected with a horizontal moving rack 2, the horizontal moving rack 2 is arranged on a horizontal moving guide rail 3 and can do reciprocating linear movement on the horizontal moving guide rail 3, the horizontal moving guide rail 3 is connected with a transformation moving rack 4 and can rotate on the transformation moving rack 4, the transformation moving rack 4 is arranged on a transformation moving guide rail 5 and can do reciprocating linear movement on the transformation moving guide rail 5, the transformation moving guide rail 5 is connected with a vertical moving rack 7 and can rotate on the vertical moving rack 7, the vertical moving rack 7 is arranged on a vertical moving guide rail 6 and can do reciprocating linear movement on the vertical moving guide rail 6, the vertical moving guide rail 6 is connected with a moving chassis 8 of the robot, and the moving chassis 8 has moving and walking functions.