Footings first: are they there, are they deep enough, have they moved? Posts next, especially their bases and the connection to the beam above. Then beams, joists, hangers and the rim, and finally the ledger, its fasteners, its flashing and the wood behind it. We push on every guard post, bounce on every stair, poke suspect wood with an awl and photograph what we find.
A cracked or spongy joist gets a new full-length joist bolted alongside it, or it comes out entirely. A post that has rotted or tipped is replaced, and the new one stands on a new concrete footing that goes down at least 30 inches. Corroded hangers, nails and lags are replaced with corrosion-resistant hardware. An unflashed ledger is taken off, the rim board behind it is repaired if needed, flashing goes on, and the ledger is reattached with proper structural fasteners. Weak stairs get new stringers spaced closer, new treads and a graspable handrail. Guard posts that rock get new blocking and bolts that pass all the way through, or the whole rail is swapped; aluminum from Westbury, Key-Link or Preferred Railing Systems is a common upgrade.
Sometimes the honest answer is that the frame is past saving. If rot runs through the ledger, the posts and a large share of the joists, patching would cost close to a new deck and leave you with old wood. In that case we recommend a rebuild, explain why, and show you the evidence; our
deck replacement page explains that path.