The present application relates to the technical field of optical lenses, and provides an optical lens, a
camera module, and an electronic device, which can solve the problem in the related art that a focusing lens group is prone to collision during focusing when an optical lens is in a telephoto state. The optical lens comprises a front lens group, a first lens group, and a second lens group which are arranged along a direction from an object side to an image side; the
optical power of the front lens group and the second lens group is negative, and the
optical power of the first lens group is positive; when the optical lens is in a short-focus state, the front lens group and the second lens group remain relatively fixed along the
optical axis of the lens, and the first lens group can move along the
optical axis of the lens, so that the optical lens is switched between near focus and far focus; when the optical lens is in a telephoto state, the front lens group and the first lens group remain relatively fixed along the
optical axis of the lens, and the second lens group can move along the optical axis of the lens, so that the optical lens is switched between near focus and far focus. The present application can be applied to electronic devices such as mobile phones.