From Greek 'mekhane' (device), from PIE *magh- (to have power) — same root as 'may,' 'might,' and 'magic.'
An apparatus using mechanical power and having several parts, each with a definite function, used to perform a particular task.
From French 'machine,' from Latin 'māchina' (device, contrivance, machine, pulley-system, stage-engine), from Greek 'mēkhanē' (μηχανή, device, means, contrivance, stratagem — specifically a crane or siege-engine), from Doric Greek 'mākhanā,' from Proto-Indo-European *magh- (to be able, to have power, to be effective). The PIE root *magh- expressed the capacity to do or accomplish — power in the most general sense. In Greek, 'mēkhanē' covered both practical devices and clever stratagems; 'deus ex machina' (a god from the machine) referred to the stage crane in Greek theatre that lowered actors
A 'machine,' the word 'may,' and 'magic' all come from the same PIE root *magh- (to have power). A machine is literally 'an enabler' — a device that gives you power to do something. 'May' means 'to have the power to,' and 'magic' was the power of the Magi. All three words are about empowerment.