Control Moment Gyroscopes (CMGs) are devices used in spacecraft to control their orientation by exploiting the conservation of angular momentum. They provide precise and rapid attitude control by varying the angular momentum of spinning rotors, enabling efficient maneuvering without expending propellant.