In the province of Al Hoceima, northern Morocco, and on two farms in Hungary, dogs were inspected for the presence of traumatic myiasis. Nine and four infested dogs were found in Morocco and Hungary, respectively. All the larvae and adults reared from them in the laboratory were identified as Wohlfahrtia magnifica (Schiner) (Diptera: Sarcophagidae). To our knowledge, these are the first cases of wohlfahrtiosis in dogs to be reported in these countries. All infested animals lived close to livestock, where wohlfahrtiosis was endemic. Infested body sites included limbs (six cases), external genitalia (two), ears (three), nose (one) and neck (one). Developing larvae caused severe welfare problems and tissue destruction in most cases. Although the number of cases reported here is small, wohlfahrtiosis in dogs may be very important from an epidemiological perspective because farm and stray dogs can act as both reservoirs and carriers of this parasitic fly species. Therefore, education of dog owners concerning the risk factors in endemic regions is recommended in order to reduce the prevalence of wohlfahrtiosis in dogs and thereby in livestock. Both owners and veterinarians should pay regular attention to any wounds and to the natural orifices of dogs, especially during the fly seasons.