"marshy spot," 1580s, a variant of Middle English quabbe "a marsh, bog, shaking marshy soil," from Old English *cwabba "shake, tremble" (like something soft and flabby). Related: Quaggy.
Entries linking to quag
quagmire n.
1570s, "soft, wet, boggy land; a marsh," from obsolete quag "bog, marsh" + mire (n.). Early spellings or related forms include quamyre (1550s), quabmire (1590s), quadmire (c. 1600), quavemire (1520s), qualmire.
The extended sense of "difficult situation, inescapable bad position" is recorded by 1766; but this seems to have been not in common use in much of 19c. (absent in "Century Dictionary," 1897, which does, however, have a verb, marked "rare," meaning "to entangle or sink in or as in a quagmire"). It revived in a narrower sense in American English in reference to stalled military actions, 1965, with reference to the U.S. war in Vietnam (popularized in the book title "The Making of a Quagmire" by David Halberstam).
quake v.
Middle English quaken, from Old English cwacian "quake (of the earth), tremble, shudder (of persons, from cold, emotion, fear, fever, etc.), chatter (of teeth)," related to cweccan "to shake, swing, move, vibrate," words of unknown origin with no certain cognates outside English. Perhaps somehow imitative (compare quag, quaver, quiver (v.), Middle English quaven "tremble, shake, palpitate," c. 1200). Related: Quaked; quaking. In Middle English formerly also with strong past-participle form quoke. The North American quaking aspen is so called by 1822.