word-forming element of Greek origin meaning "against, opposed to, opposite of, instead," shortened to ant- before vowels and -h-, from Old French anti- and directly from Latin anti-, from Greek anti (prep.) "over, against, opposite; instead, in the place of; as good as; at the price of; for the sake of; compared with; in opposition to; in return; counter-," from PIE *anti "against," also "in front of, before" (from root *ant- "front, forehead," with derivatives meaning "in front of, before"), which became anti- in Italian (hence antipasto) and French.
It is cognate with Sanskrit anti "over, against," and Old English and- (the first element in answer). A common compounding element in Greek, in some combinations it became anth- for euphonic reasons. It appears in some words in Middle English but was not commonly used in English word formations until modern times. In a few English words (anticipate, antique) it represents Latin ante.
In noun compounds where it has the sense of "opposed to, opposite" (Antichrist, anti-communist) the accent remains on the anti-; in adjectives where it retains its old prepositional sense "against, opposed to," the accent remains on the other element (anti-Christian, anti-slavery).
1690s, from acid (adj.); originally loosely applied to any substance tasting like vinegar, in modern chemistry gradually given more precise definitions from early 18c. Slang meaning "LSD-25" first recorded 1966 (see LSD).
When I was on acid I would see things that looked like beams of light, and I would hear things that sounded an awful lot like car horns. [Mitch Hedberg, 1968-2005, U.S. stand-up comic]
Acid rock (type performed or received by people using LSD) is also from 1966; acid house dance music style is 1988, probably from acid in the hallucinogenic sense + house "dance club DJ music style."
Others are reading
Definitions of antacid
an agent that counteracts or neutralizes acidity (especially in the stomach);