Make sure that your hero is at least at level 6. You can then go to the City> Guild. Then choose the Guild you want to join.

If you can't find a proper Guild then you can use specific filters or create your own. The last option will cost you 100 000 Gold.