This is what the booklet has to say about Guilds and Temples

Each guild or temple can accommodate a certain number of heroes. In unusual circumstances, Your Majesty, you many find you have more heroes of a type than places for them (for example, you might resurrect a fallen hero, after having hired his or her replacement). A hero without a home will temporarily seek refuge in the Palace. If a new home isn't provided, he or she will leave your kingdom to seek their fortune in the service of a new - possibly more caring - monarch.

NOTE: A hero will wait for ten days in the Palace for a new home, before leaving the service of the king.

There are multiple guilds inside of Majesty 2, they are as follows: