The Temple is the place where your citizens worship the Deity you have chosen. When you sacrifice Offerings you earn a bonus based on your deity and the amount of offerings you choose to sacrifice. You upgrade your Temple different from any other buildings and research and it can be upgraded concurrently with one building and one research. The higher your Temple level, the more you can offer to your Deity and the higher bonuses you can get.