Ants form colonies through a process called "colony foundation." A single fertilized queen ant establishes a new colony by laying eggs and caring for the initial brood until they mature into worker ants. As the colony grows, the queen continues to reproduce, and the workers take on various tasks such as foraging, caring for the young, and defending the colony. This cooperative behavior among the ants enables them to build and maintain a successful colony structure.