From macho (“sledgehammer”) + -ar, from Latin marculus (“hammer”), possibly a diminutive of marcus (“hammer”), although the latter is attested late and may be a back-formation from marculus.
Practice speaking and memorizing "machar" and many other words and sentences in Spanish.