This afternoon, with only light rain falling, I excavated the sinking corner of an old shed and got a hydraulic jack under it to bring it up to level.
But the base is rotted so I'll need to cut away the punky wood and put in something treated. Then I can build up a foundation with better drainage.