Ilam Formation in Kuh-e-Shah Nakhjir section, south of Ilam, with a total thickness of 172 m, consist of limestone with interbedded marly and shaley limestone. The lower contact with the underlying Surgah Formation and upper contact with the Gurpi Formation is conformable. On the bases of petrographic studies, important diagenetic processes in the Ham Formation include cementation, physical and chemical compaction and replacement processes such as hematitization, pyritization, phosphatization, glauconitization and silicification. Porosities observed in this section include intraparticle, vuggy and fracture types. Petrographic studies and, determination of fossils and textural characteristics led to identification of five carbonate microfacies, which are belong to open marine facies belt. Planktonic foraminifera are dominate in these microfacies and they were mud supported and are deposited in deeper part of the basin.