Flows with chemical reactions in porous media are fundamental phenomena encountered in many natural, industrial, and scientific areas. For such flows, most existing studies use continuum assumptions and focus on volume-averaged properties on macroscopic scales. Considering the complex porous structures and fluid–solid interactions in realistic situations, this study develops a sophisticated lattice Boltzmann (LB) model for simulating reactive flows in porous media on the pore scale. In the present model, separate LB equations are built for multicomponent flows and chemical species evolutions, source terms are derived for heat and mass transfer, boundary schemes are formulated for surface reaction, and correction terms are introduced for temperature-dependent density. Thus, the present LB model offers a capability to capture pore-scale information of compressible/incompressible fluid motions, homogeneous reaction between miscible fluids, and heterogeneous reaction at the fluid–solid interface in porous media. Different scenarios of density fingering with homogeneous reaction are investigated, with effects of viscosity contrast being clarified. Furthermore, by introducing thermal flows, the solid coke combustion is modeled in porous media. During coke combustion, fluid viscosity is affected by heat and mass transfer, which results in unstable combustion fronts.