A waterproof and heat-dissipating module mounted on an electronic device includes a housing structure, a compartment structure, and a fan. A first ventilation hole, a second ventilation hole, a first drainage holes, and a second drainage holes are formed on the housing structure. The compartment structure is disposed inside the housing structure and for partitioning an inside space of the housing structure off that includes an inhaling chamber, a fan room, an accommodated space, and an exhausting chamber. The fan is disposed inside the fan room so that airflow is guided from the first ventilation hole to the second ventilation hole via the inhaling chamber, the fan room, the accommodated space, and the exhausting chamber so as to dissipate heat from circuit boards disposed inside the accommodated space away.