The exact species cannot be confirmed from the photograph alone, because proper identification would require details such as body structure, size, coloration, antennae, habitat, and location. What is clear, however, is that the nest had been disturbed. Some ant species can react defensively when their colony is threatened, using bites, stings, or defensive chemicals to protect the queen, larvae, and other members of the nest.
A hidden colony can contain hundreds or even thousands of workers, so opening part of the nest can quickly turn a quiet patch of soil into a highly active area. That does not always mean someone needs to sprint away in panic, but continuing to dig or trying to touch the insects can increase the risk of being bitten or stung. The safest response is to stop disturbing the area and move back calmly.
The photo is a reminder that forests often hide complex ecosystems just beneath the surface. If you uncover an unfamiliar nest while digging, resist the temptation to poke, handle, or destroy it simply out of curiosity. Step away, give the colony space, and let wildlife remain undisturbed—because one careless move can turn an interesting discovery into a painful encounter.