Middle English pleie, from Old English plega (West Saxon), plæga (Anglian) "quick motion; recreation, exercise, any brisk activity" (the latter sense preserved in swordplay -- Old English sweordplegan -- etc.), from or related to Old English plegan (see play (v.)).
By early Middle English it could mean variously, "a game, a martial sport, activity of children, joke or jesting, revelry, sexual indulgence." Of physical things, "rapid, brisk, or light movement," by 1620s.
Meaning "dramatic performance" is attested by early 14c., perhaps late Old English. Meaning "free or unimpeded movement, liberty and room for action," of mechanisms, etc., is from 1650s. The meaning "activity, operation" (1590s) is behind expressions such as in full play, come into play. The sporting sense of "the playing of a game" is attested from mid-15c.; that of "specific maneuver or attempt" is from 1868.
The U.S. slang meaning "attention, publicity" is by 1929. To be in play (of a hit ball, etc.) is from 1788. Play-by-play in reference to running commentary on a game is attested from 1927. Play on words "pun" is from 1798. Play-money is attested from 1705 as "money won in gambling," by 1920 as "pretend money."
Middle English pleien, from Old English plegan, plegian "move lightly and quickly, occupy or busy oneself, amuse oneself; engage in active exercise; frolic; engage in children's play; make sport of, mock; perform music," from Proto-West Germanic *plegōjanan "occupy oneself about" (source also of Old Saxon plegan "vouch for, take charge of," Old Frisian plega "tend to," Middle Dutch pleyen "to rejoice, be glad," German pflegen "take care of, cultivate"), which is apparently connected to the root of plight (v.), but the ultimate etymology is uncertain and the phonetic development is difficult to explain.
Meaning "to take part in" a martial or athletic game is from c. 1200. It has been opposed to work (v.) since late 14c. Meaning "perform or act on the stage" (transitive) is by late 14c., as are the senses of "take the role of" and "make a pretense of, make believe" and "act thoughtlessly or wantonly." Sense of "put forward, move, throw, lay on the table, etc." in the course of a game or contest is by 1560s of chess pieces, 1670s of playing cards. Sense of "operate or cause to operate with continuous or repeated action" is from 1590s. Meaning "to cause (a recording) to reproduce what is on it" is by 1903, probably from the "make music" sense. Related: Played; playing.
Many expressions are from the stage, sports and games, or music, and it is not always easy to say which is from which. To play up "emphasize" is from 1909 (perhaps originally "play music more vigorously"); to play down "minimize" is from 1930; to play along "pretend to agree or cooperate" is from 1929. To play fair "be nice" is from mid-15c. To play house as a children's activity is from 1958.
To play for keeps is from 1861, originally of marbles or other children's games with tokens. To play (something) safe is from 1911; to play favorites is attested from 1902. To play second fiddle in the figurative sense is from 1809 ("Gil Blas"). To play into the hands (of someone) "act in such a way as to give the advantage to one's opponent or a third party" is from 1705. For play the _______ card see card (n.1). For play the field see field (n.). To play with oneself "masturbate" is from 1896 (to play with "have sexual intercourse with" is from mid-13c.). Playing-card "one of a pack of cards used for playing games" is from 1540s.