A big part of it is setting the scope right. You start with a narrow scope, eg starter town and a couple nearby dungeons, plus maybe rumours of a big vague threat over the horizon, but you give the players freedom of action within that scope. Gradually as you play you prep more material, partly...