The invention discloses a variable aperture structure, which comprises an aperture carrier, a driver, and an aperture-moving structure; the aperture carrier comprises a horizontal part and a verticalpart which are connected to each other, and the horizontal part is provided with a lens light hole; the driver is mounted on the aperture carrier, and is used for driving the aperture-moving structureto move on the horizontal part of the aperture carrier; the aperture-moving structure is provided with an aperture hole, the diameter of which is less than the diameter of the lens light hole, and the aperture-moving structure is movably mounted on the aperture carrier, and can be driven by the driver to move to the lens light hole, so that the luminous flux of a lens can be changed. According tothe variable aperture structure, the size is small, the structure is simple, and the reliability is high. The invention further discloses a camera module comprising the variable aperture structure, the size of the camera module is small, and the imaging quality is high. The invention further discloses an electronic device comprising the camera module, the electronic device is relatively thin, andhigher-quality pictures can be taken.