The invention relates to an ultrasonic cleaner with the foreign matter removal function. The ultrasonic cleaner comprises a base, an ultrasonic wave transmitter, a transducer, a storage box and a cleaning tank and further comprises a cleaning mechanism and two filter mechanisms. Each filter mechanism comprises a fixing box, a connecting pipe, a filter screen, a water pumping assembly, a pressing plate, a first spring, a foreign matter removal assembly and two power assemblies. The cleaning mechanism comprises a rotating plate, a rotating shaft, a limiting assembly, a torsion spring, a ring andtwo connecting assemblies. According to the ultrasonic cleaner with the foreign matter removal function, by means of the filter mechanisms, the foreign matter removal work is carried out on cleaningfluid in the cleaning tank, the foreign matter content in the cleaning tank is reduced, and the problem that stains cleared off an article are dissolved in the cleaning fluid to cause secondary pollution to the article is prevented; and by means of the cleaning mechanism, the cleaning work is carried out on the bottom of the article in the storage box, and the cleaning effect is improved.