late 14c., extasie "elation," from Old French estaise "ecstasy, rapture," from Late Latin extasis, from Greek ekstasis "entrancement, astonishment, insanity; any displacement or removal from the proper place," in New Testament "a trance," from existanai "displace, put out of place," also "drive out of one's mind" (existanai phrenon), from ek "out" (see ex-) + histanai "to place, cause to stand," from PIE root *sta- "to stand, make or be firm."
Used by 17c. mystical writers for "a state of rapture that stupefied the body while the soul contemplated divine things," which probably helped the meaning shift to "exalted state of good feeling" (1610s). Slang use for the drug 3,4-methylendioxymethamphetamine dates from 1985. Formerly also spelled ecstasie, extacy, extasy, etc. Attempts to coin a verb to go with it include ecstasy (1620s), ecstatize (1650s), ecstasiate (1823), ecstasize (1830).