The only free and comprehensive online etymological dictionary of the Spanish language
mal (Adverb, Noun) "badly;" "bad," "evil"

12th cent. From Latin male "badly," from malus "bad" (see malo).

Romance: Western Vulgar Latin: Portuguese mal, Catalan mal, French mal, Italian male; Sardinian: mabi