Dictyostelium discoideum, the soil-dwelling single-celled amoeba that feeds on bacteria, builds a barrier around its colonies that counteracts bacterial attempts to penetrate them, facilitates amoebal feeding and protects them from oxidative stress.