The invention is applicable to the technical field of a camera, and provides a lightweight and thin module and a manufacturing method thereof, a camera and an electronic device. The module comprises acircuit board, an image sensor, a middleware and an optical filter, wherein the optical filter is directly fixed on the top surface of the photosensitive area of the image sensor. The embodiment eliminates the base in the prior art and directly fixes the filter on the top surface of the photosensitive area of the image sensor, thereby saving components and reducing the filter attaching process, and avoiding the problem of tilting the base and the middleware in the installation process. As for that module design, since there is no base, the space of the module in the vertical direction is saveby 0.3 to 0.5 mm, so that the module is lighter and thin. In addition, since the image sensor itself is fixed on the circuit board, the image sensor can provide sufficient bearing strength to the filter, thereby improving the bearing capacity of the module when impacted by external forces, and making the filter not easy to fall off or break.