Inside the Islamic Emirate of Timbuktu TIMBUKTU, Mali - The Islamic court of Timbuktu referred to it as Case Number 25. The date written on the court document is Oct. 10, 2012. "In front of us stands a man, Muhamad bin Moussa, who is accused of practicing magic," reads the document. During investigation he admitted to have used talismans, magical tables, and magical seals, and to writing [Quranic] verses and tearing them, which makes him a magician. The court, led by judge Muhammad bin al-Hussain, asked the culprit to publically repent. This, of course, he did immediately. According to the court paper, Muhamad uttered the shahada -- the Muslim declaration of belief in the oneness of God. He then promised the Islamic court he would study the Quran. "This is why we did not spill his blood," reads the document. Instead of the death sentence, Muhamad the Magician was sentenced to "three days in jail so other people can take it as an example." From April 2012 until January 2013, al Qaeda and its local ally, Ansar Dine, attempted to establish an Islamist theocracy in the northern Mali city of Timbuktu. Hundreds of documents found in the hastily abandoned offices of the Islamic police and the sharia court show how the radicals meticulously created institutions meant to implement their harsh version of Islamic law, which included destroying historic shrines and ancient manuscripts in the ancient city. The Islamists only fled after a French military intervention helped the Malian army wrest Timbuktu from their grasp. The extremists commandeered a local establishment named La Maison -- a fancy, French-owned hotel designed to resemble a traditional Malian home, made of brown clay -- as the headquarters for their Islamic court. In one of the upper rooms of the hotel, stacks of papers detailed the punishments to be meted out. In the same room, a rope lay on the floor. According to a local man, who did not want to be identified, the rope was used for floggings -- a common sentence delivered by the Islamic court. Recovered copybooks suggest that the Islamic court was divided into three sections, with a total of nine judges sitting on the bench. The first section was responsible for transgressions such as "murder, robbery, adultery, alcohol, smoking, swearing, and magic." The second section dealt with social issues, such as marriage and divorce; the third was devoted to financial matters, notably "money and land disputes." The extremists used a bank in the center of town as their police station. On a wall inside the building is written the Arabic text: "Tanzeem al Qaeda fi al-Maghreb" -- Organization of al Qaeda in North Africa. A pickaxe had been left in one of the rooms. "The religious police used this pickaxe to destroy the mausoleums in the graveyards," explained Malik Diko, a former tour guide who stayed in Timbuktu during the period of extremist rule. Hidden away in the makeshift police station was a two-page letter from one of the main leaders of al Qaeda in the Islamic Maghreb, Abdul Hamid Abu Zayd. The memorandum, dated Oct. 15, 2012, and titled "Obligatory guidelines for the general police, moral police, and the rest of the soldiers," provides a blueprint for how the local security forces should implement religious law in Timbuktu. While some of the instructions -- such as the prohibition on magic, smoking cigarettes, or women wearing makeup -- may seem bizarre to a Western audience, other recommendations are clear attempts to put a limit on the powers of the religious police. The 14-point memorandum, for instance, states that citizens' houses cannot be entered without the explicit permission of the "emir of Timbuktu," that punishment can only take place at the police station, and that police are not allowed to examine the contents of citizens' mobile phones without just cause. Even in the event that a Timbuktu resident is sentenced to lashings, the document advises, "our brothers should not use excessive force." The Islamists didn't just organize the city's legal system, they developed a military plan to control and defend the city -- albeit one that collapsed in the face of the French-assisted military offensive in January. Various Islamist commanders were in charge of the defense of different strategic locations throughout Timbuktu. The airport, for instance, was guarded by commander Abdul Haq and his men. The Ahmed Baba Center -- where hundreds of old manuscripts were burned hours before al Qaeda and its allies fled the city -- was controlled by a commander named Abu Moussa. And commander Abu Sayaf was in charge of securing the power station of Timbuktu. The documents also show clear evidence of the international nature of the extremist takeover of northern Mali. The top Islamic judge, Muhammad bin al-Hussain, used a mobile phone with a Libyan number. In other notebooks, two more Libyan telephone numbers were found next to names of, presumably, commanders. Two telephone numbers from Algeria also appear among the notes. Each case gives a unique view of how strict Islamic law was applied during al Qaeda's short-lived Islamic state. While the rulers of the "emirate of Timbuktu" were certainly brutal and repressive, they also took care to establish a government built to last -- one with functioning institutions that at times even protected residents against their own loyalists. In one court session, titled Case Number 8, the judges consider the fate of a man named Abu Bakr Burkina. He is one of their own fighters who stands accused of having raped a girl in Timbuktu. The court paper, dated Aug. 27, 2012, reads: "After listening to his saying he [Abu Bakr Burkina] admitted that he committed adultery with the girl after having threatened to take her to the police headquarters late at night. He carried his gun. And all this evidence confirmed what the girl has said earlier. On the same document the punishment is written down: "Based on everything, we sentence Abu Bakr Burkina to the following: a. 100 lashes because he is not married but single. b. Banishment for one year (that will take place in prison). c. The girl is not to be punished as she was forced. Another court case, on Aug. 16, 2012, details harsh punishment against someone discovered drinking alcohol. The judges sentence Ibrahim bin al-Hussain to 40 lashes and paying of 50.000 CFA [$100] after he admitted to drinking wine and selling it in his shop. Also his shop will be closed temporarily by the Islamic police. Women were also lashed, as Case Number 29, on Oct. 15, 2012, suggests. "Assia bint Omar came in front of us," states the document, "And we sentenced her to 60 lashes due to her mixing with men and the usage of foul words. She however denied that she committed any crime. Many cases deal with marriage problems and matters of divorce. Not surprisingly, in most cases the judge tended to agree with the man, not the woman. "In front of us stood Daham Ould el Radi who lives in Timbuktu," reads one sentencing, "He could not continue with his wife, who is called Bibi bint Osman. So we decided to separate them and the wife pays 100.000 CFA [$200]. In cases where a woman wanted a divorce, the court was much more hesitant to act -- even when the female was a minor. "Ahmad bin Mido is asking us to make it possible for him to consume his rights [that is, to have sex] with his wife Fatima bint Abdu who he married when she was still young," reads one document, "During the secular regime of Mali, he was punished with imprisonment and with paying a fine. The wife mentions now to us that she hates him due to his bad treatment of her. Although the wife -- who is a minor -- hates the husband, the court decides in favor of him. "a. The man above can consummate with his wife. She should obey him and give him his [sexual] rights," reads the sentence. But there is a small compromise: "Due to the fear of the wife for her husband and her hatred for him we have decided to keep the wife at her parents' house. He can visit her there and try to build bridges and gain her back. The court's ruling wasn't an outlier -- rather, it was an expression of the Islamist radicals' view of women as second-class citizens. Another document found at the Timbuktu police headquarters laid out the required dress code for women: The leaflet featured a picture of a faceless woman dressed in a black Islamic dress. This is the dress code for women, the text in Arabic and French explains. According to the document, the dark clothes must cover the full body. It may not be transparent. It must be large enough to avoid showing body shapes. It must not be colorful. It cannot be modern. The clothes must not look like those of a man, nor like those of unbelievers. And, lastly, it is forbidden to use perfume. Al Qaeda and its allies were not only establishing their version of a Taliban state in northern Mali -- they were doing so systematically, transforming daily life to conform to their harsh interpretation of Islamic law. If they had not been driven out by military force, there is every reason to believe they would have succeeded.