One of history's most interesting character is Al Hakim Bi Amr Allah. Seen as God incarnate by some, as an eccentric "mad" ruler by others, and vilianised by yet others.
Al Hakim was a Caliph of the Fatimid dynasty of Egypt, North Africa, Palestine and Syria. Contrary to the majority of their subjects, who were Sunni, the Fatimids were Shia of the Ismaili branch. They engaged in missionary work to spread their sect's belief as wide as possible.
Al Hakim reigned from 996 C.E. to 1021 C.E, having lived to age 36 and ruled for 25.
Some pro-Fatimid sources are too lenient on him, and do not elaborate on his character and eccentricies, such as Wikipedia's entry, or the Institute of Ismaili Studies in the UK, or the quasi official Ismaili.Net web site. On the contrary, most Sunni sources take a very hostile attitude to him, saying that he claimed divinity for himself.
The truth is somewhere in between. Balanced and objective historians have wrote extensive accounts on him. One such source is the Egyptian Historian, al-Maqrizi المقريزي.
Al-Maqrizi dediced one of his work to the Fatimid dynasty, it is called إتعاظ الحنفاء Iti'az al-Hunufa in it, he chronicles the origin of this dynasty, detailed biographies of its rulers, and events during their reign.
The section on al-Hakim is quite comprehensive.
I will include here excerpts about al-Hakim's deeds, trying to draw conclusions from there acts as appropriate. There are in Arabic, with a summary in English.