Kerogen is mainly composed of carbon, hydrogen, and oxygen, which are the main components of crude oil and gas. The pyrolysis of kerogen is an efficient method to generate clean energy. In the present work, the pyrolysis reaction process of three types of kerogen is simulated using ReaxFF molecular dynamics (MD) methods to study the microscopic mechanism and the distribution of products. The results indicated that the pyrolysis products of the three types of kerogen significantly depend on the molecular structures, temperature, and reaction time. As the temperature increases, the gaseous hydrocarbon and the light and heavy oil fractions decreased, where small molecular fragments polymerized to form new molecular fragments. For an isothermal temperature, with the reaction proceeding, some component polymerization of the pyrolyzed fragments occurred, resulting in the generation of new light oils and heavy oils. Moreover, quantum chemical analysis was employed to reveal the kerogen pyrolysis mechanism. First, the weak bonds such as C-O, C-N, and C-S structures were decomposed to generate large carbon and some heavy shale oil fragments. Second, the cycloalkanes and long-chain alkanes were decomposed to generate a large amount of light shale oil and gaseous hydrocarbons. Finally, the decomposition of C═C in the aromatic ring, the secondary decomposition of light and heavy shale oils, and the further decomposition of short-chain alkanes occurred. In addition, the production of hydrogen (H2) occurred at the late stage of the pyrolysis reaction. Hydrogen radicals were formed by the decomposition of C-H bonds and subsequently collided with each other, resulting in the formation of H2 molecules. The pyrolysis and chemical analysis of kerogen can clearly determine the type and content of hydrocarbon substances, providing scientific data for exploration, development, and utilization of shale gas and shale oil.