A camera module is provided, including a holder, a base, a bottom, an image sensor, and a first biasing element. The holder holds an optical lens and is disposed on the base. The bottom supports the image sensor and connects to the base via the first biasing element. The bottom and the image sensor can be moved with respect to the base by the first biasing element.