A rain garden comes to mind but you still need very good drainage otherwise you end up retaining the anaerobic conditions in the soil there. Some people dig really deep and then fill the hole with good draining stuff like straw, compost and other organic matter.