Borrowed from Latin Mahomētus, itself from Arabic مُحَمَّد (muḥammad). For intervocalic c from Latin h, compare Late Latin nichil.
Macometto m