On Neopets, a guild is a group you can create that others are free to join. It's a place to have fun, meet new people, make friends, and post games — though that's pretty much the extent of it.
For a more grown-up answer: a guild is a system similar to a labor union. In medieval times, guilds arose in response to heavy taxation by lords and landowners. They shielded merchants and craftsmen from taxes and monopolies, ensured quality goods at fair prices, and even organized religious functions, schools, healthcare, and protection. Eventually they declined, as they were seen to stifle innovation and free trade.
Incidentally, I'd say World of Warcraft has them too — whenever I Google "guild," WoW comes up constantly.