I have a raised bed garden that managed to flood. It did this by having such a high clay content that the drain holes were blocked. This let the muck go somewhat anoxic. I've lately been turning that, and mixing in some material to break up the clay....but that muck sure does smell bad. Anoxic muck tends to smell bad.