c. 1600, "alchemy," from chemist + -ry; also see chemical (adj.). The meaning "natural physical process" is from 1640s; the sense of "scientific study of the composition of material things and the changes they undergo" is by 1788. The figurative sense of "instinctual attraction or affinity" is attested slightly earlier, from the alchemical sense.