But because it was lacking completeness and suffered from inconsistencies it was not submitted to the throne at that date.
Three years later a team of scholars took over the refining: Zhang Yushu, Xiong Cilü 熊赐履, Chen Tingjing 陈廷敬, and Wang Hongxu 王鸿绪. Again, Wan Sitong and Qian Mingshi 钱名世 were asked to support the editors. In 1702 Wan Sitong died and Wang Hongxu personally trimmed and polished the text. The first part to be ready were the normal and collective biographies (liezhuan 列传) which were submitted to the throne in 1714. The treatises (zhi 志) and tables (biao 表) still had to be condensed, and together with the biographies were submitted in 320 chapters (juan) in 1723, as the so-called Hengyun shanren Mingshi gao 横云山人明史稿 "Draft to a history of the Ming dynasty by the Man from Mt. Horizontal Clouds [i. e. Wang Hongxu]". The draft comprised 320 juan: 9 juan of imperial biographies (benji 本纪), 77 juan of treatises, tables in 9 juan, and normal and collective biographies in 205 juan.
Basing on this version Zhang Tingyu and Zhu Shi 朱轼 developed a final version submitted to the throne in 1739. It was printed by the imperial print office in the Wuying Hall 武英殿 of the Imperial Palace under the title of Mingshi. The whole compilation process had taken 95 years for completion, which is the longest necessary for any official book.
The Mingshi consists of 332 juan of which 24 are imperial biographies, 75 treatises, 13 tables, and 220 normal and collective biographies.
The primary sources for the compilation were official documents like the veritable records of the Ming Mingshilu 明实录, archival material, the so-called dibao 邸报 "Peking gazette", a local history of the imperial capital, the Da-Ming huidian 大明会典 "Statutes of the Great Ming", memorials to the throne, local gazeteers, biographies, but also unofficial material like privately written histories or literary sources.