A self-propelled vacuum cleaner having a mosquito trapping function includes at least a moving device, a dust collecting device, a mosquito trapping device, a detecting device, a processing device, and a battery. The mobile device is used to move on a plane. The dust suction device is disposed on the mobile device for sucking dust on the plane. The mosquito trap is installed on the dust suction device to provide a mosquito trapping function. The detecting device detects the presence of mosquitoes in the surrounding environment and generates a detection signal according to the orientation of the mosquito. The processing device receives and generates a control command according to the detection signal, wherein the mosquito trap device is activated by receiving the control command and the mobile device receives and moves according to the control command to move toward the direction of the mosquito, thereby not only without manual manipulation The mosquito-inducing device is automatically activated and can be actively displaced to mosquitoes for mosquitoes.一種具備捕蚊功能的自走式吸塵器至少包含移動裝置、吸塵裝置、捕蚊裝置、偵測裝置、處理裝置及電池。移動裝置用以於平面上移動。吸塵裝置設於移動裝置上,用以吸取平面上之灰塵。捕蚊裝置設於吸塵裝置上用以提供捕蚊功能。偵測裝置偵測周圍環境是否存在蚊子並依據蚊子之方位產生偵測訊號。處理裝置接收並依據偵測訊號產生控制指令,其中捕蚊裝置係接收控制指令而啟動且移動裝置係接收並依據控制指令產生移動方向以朝向蚊子之方位移動,藉此不僅不須人為操控就可自動啟動補蚊裝置且可主動位移至蚊子周遭進行捕蚊。