A rotating mechanism, comprising a base, a first door panel, a first connector, and a first swing arm, wherein the first door panel is hinged to the base, the first connector is hinged to the first door panel, and the first connector is configured to be fixed to a first housing; the first door panel is provided with a first guide sliding slot, the first connector is provided with a second guide sliding slot, one end of the first swing arm is hinged to the base, the other end of the first swing arm is provided with a first sliding member, and the first sliding member is slidably connected inside the first guide sliding slot and the second guide sliding slot; the base, the first door panel, and the first housing each have a lamination surface, and the lamination surface is used for lamination to a foldable screen; and the first connector is capable of rotating between an unfolding position and a folding position relative to the base; when the first connector is at the unfolding position, the lamination surface of the base, the lamination surface of the first door panel, and the lamination surface of the first housing are coplanar and face a same direction; when the first connector is at the folding position, an included angle between the lamination surface of the base and the lamination surface of the first door panel on a side for lamination to the foldable screen is less than 90°, an included angle between the lamination surface of the first door panel and the lamination surface of the first housing on the side for lamination to the foldable screen is greater than 180°, and the lamination surface of the first housing is perpendicular to the lamination surface of the base; wherein the second guide sliding slot is an arc-shaped sliding slot, and an extension path of the second guide sliding slot is arched in a direction close to the lamination surface of the first door panel, and wherein the first guide sliding slot is an arc-shaped sliding slot, and an extension path of the first guide sliding slot is arched in a direction away from the lamination surface of the first door panel. the first door panel is hinged to the base, the first connector is hinged to the first door panel, and the first connector is configured to be fixed to a first housing; the first door panel is provided with a first guide sliding slot, the first connector is provided with a second guide sliding slot, one end of the first swing arm is hinged to the base, the other end of the first swing arm is provided with a first sliding member, and the first sliding member is slidably connected inside the first guide sliding slot and the second guide sliding slot; the base, the first door panel, and the first housing each have a lamination surface, and the lamination surface is used for lamination to a foldable screen; and the first connector is capable of rotating between an unfolding position and a folding position relative to the base; when the first connector is at the unfolding position, the lamination surface of the base, the lamination surface of the first door panel, and the lamination surface of the first housing are coplanar and face a same direction; when the first connector is at the folding position, an included angle between the lamination surface of the base and the lamination surface of the first door panel on a side for lamination to the foldable screen is less than 90°, an included angle between the lamination surface of the first door panel and the lamination surface of the first housing on the side for lamination to the foldable screen is greater than 180°, and the lamination surface of the first housing is perpendicular to the lamination surface of the base; wherein the second guide sliding slot is an arc-shaped sliding slot, and an extension path of the second guide sliding slot is arched in a direction close to the lamination surface of the first door panel, and wherein the first guide sliding slot is an arc-shaped sliding slot, and an extension path of the first guide sliding slot is arched in a direction away from the lamination surface of the first door panel.