This paper contains natural convection of Ag–MgO/water micropolar hybrid nanofluid in a hollow hot square enclosure equipped by four cold obstacles on the walls. The simulations were performed by the lattice Boltzmann method (LBM). The influences of Rayleigh number and volume fraction of nanoparticle on the fluid flow and heat transfer performance were studied. Moreover, the effects of some geometric parameters, such as cold obstacle height and aspect ratio, were also considered in this study. The results showed that when the aspect ratio is not large ([Formula: see text] or 0.4), at low Rayleigh number (103), the two secondary vortices are established in each main vortex and this kind of secondary vortex does not form at high Rayleigh number (106). However, at [Formula: see text], these secondary vortices occur again in the middle two vortices at [Formula: see text], which is similar to that at [Formula: see text]. At [Formula: see text], the critical Rayleigh number, when the dominated mechanism of heat transfer changes from conduction to convection, is 104. However, the critical Rayleigh number becomes 105 at [Formula: see text] or 0.6. When the cold obstacle height increases, the shape of the vortices inside the enclosure changes due to the different spaces. Besides, at [Formula: see text], for different cold obstacle heights, the location of the thermal plume is different, owing to the different shapes of vortices. Accordingly, the average Nusselt number increases by increment of the Rayleigh number, nanoparticle volume fraction, cold obstacle height and aspect ratio.