In this paper, a rolling mechanism constructed by a spatial 8-bar linkage is proposed. The eight links are connected with eight revolute joints, forming a single closed-loop with two degrees of freedom (DOF). By kinematic analysis, the mechanism can be deformed into planar parallelogram or spherical 4-bar mechanism (SFM) configuration. Furthermore, this mechanism can be folded onto a plane at its singularity positions. The rolling capability is analyzed based on the zero-moment-point (ZMP) theory. In the first configuration, the mechanism can roll along a straight line. In the second configuration, it can roll along a polygonal region and change its rolling direction. By alternatively choosing one of the two configurations, the mechanism has the capability to roll along any direction on the ground. Finally, a prototype was manufactured and some experiments were carried out to verify the functions of the mechanism.