system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How pet ant colony produce queen? did they just appear randomly?
gpt
They develop from larvae.

Ants lay 2 types of eggs, fertilised and unfertilised:
Unfertilised eggs hatch into larvae that turn into winged males.
Fertilised hatch into larvae that generally turn into sterile wingless female workers.

However a female larva that is well fed will turn into a fertile winged princess ant and fly off to start a new colony.

If there's no queen in the colony she'll stick around, bite her wings off and become queen.