The invention provides a lens assembly. The lens assembly comprises a first substrate, a lens, a first memory alloy wire and a second memory alloy wire, wherein the lens is arranged in the first substrate in a sliding way, the first substrate comprises a first side plate and a second side plate, the first side plate is arranged at one side of the lens, the second side plate is arranged at the other side of the lens, one end of the first memory alloy wire is connected with the first side plate, the other end of the first memory alloy wire is connected with the lens, one end of the second memoryalloy wire is connected with the second side plate, the other end of the second memory alloy wire is connected with the lens, and the first memory alloy wire and the second memory alloy wire both arearranged perpendicular to an optical axis of the lens. In the lens assembly provided by the invention, the lens is driven to move relative to the first side plate and the second side plate in a reciprocating way to achieve optical vibration prevention by enabling the first memory alloy wire and the second memory alloy wire to be energized and deformed, no problem of magnetic interference exists,and the stability is relatively high; and moreover, by a driving setting mode, the lens assembly is simple in structure and is convenient to install, no extra hall component is needed to be arranged,and the lens assembly is high in reliability used under a special environment.