This paper presents a legged and clamper-based capsule robot (CR) with active locomotion function. The CR utilizes the extension and contraction of the anchoring legs to expand the collapsed intestinal wall, crawl in the intestinal tract, and stand in large spaces such as the stomach and large intestine organs. The mechanical structure design, kinematic analysis, principle of locomotion, and force analysis of the CR are presented. The design concept and locomotion principles of the proposed CR are verified by a prototype with the diameter of 13 mm and length of 39 mm. Three experiments were conducted to test the locomotion performance of the proposed CR. In the experiments, the prototype successfully expands the collapsed phantom intestine, stands on the plane, and moves forward in transparent tube at a promising speed. Experimental results indicate that the CR has good locomotion capabilities.