1. Missing or Inadequate Diagonal Bracing (The Most Common Cause)
Hold a square box. If you push the top corner sideways, the square instantly collapses into a flat parallelogram. The only way to stop a square frame from collapsing sideways is to put a diagonal line directly through the middle to turn the square into a triangle.
If your deck posts are more than 3 feet tall, building code requires heavy 2x4 or 2x6 diagonal braces (often called Y-braces or knee braces) bolted mathematically between the vertical support posts and the horizontal carrying beam. If an amateur builder skipped this crucial triangulation, the deck will instantly sway sideways. Adding 45-degree corner braces with heavy structural lag screws solves 90% of all deck wobble instantly.
2. Failing Ledger Board Attachment
Walk out onto the deck. Do you feel the structure actively pulling away from the house when it sways? If so, the ledger board (the wood physically attaching the deck to your siding) is failing.
This is terrifying. Either the builder used cheap nails instead of 1/2-inch structural lag screws, or the wood beneath the siding has rotted away due to improper flashing, meaning the lag screws are slowly ripping out of the decaying house framing. You must aggressively inspect the metal hardware bolting the deck to your house.
3. Rusted Post Anchors in the Dirt
Look at the bottom of your gigantic support posts (usually 6x6 lumber). Does the wood plunge directly into the dirt, or is it bolted onto a raised metal bracket sitting on top of a concrete cylinder?
Historically, many builders buried the wood posts directly into the dirt or poured concrete entirely around the wood. Over decades, the ground moisture rots the base of the wood away entirely, or the acidic soil rusts out cheap metal brackets. If the bottom of the long lever (the post) is no longer rigidly locked to the massive concrete footing in the earth, the hinge point fails, and the deck freely sways in the wind.