Welsh from Old Welsh "fortunate, good"; it is probably a surviving variant of the Old Irish name Maedóc.