How would evolution lead to Ant - like sentient aliens?

Aliens that look (and often act) like ants are pretty common in fiction. However, I would like to know how such aliens could evolve. Conditions would have to be somewhat similar to Earth's (because they have similar biology) but also be diffrent enought to favor the development of social insects. How do you think this would go?