Provided are bioerodible formulations that can be implanted into a cavity of a mammal as a liquid or semi-liquid and which solidifies upon exposure to body temperature of the mammal to form an implant. The implant erodes over a period of time and eluted a drug. The implant forms a seal with the surrounding tissue to prevent the entry of bacterial pathogens and enhance delivery of the Al at the desired foci.