This article attempts to evaluate the impact of MAGNETOHYDRODYNAMICS and ferrohydrodynamics on the free convection of a magnetic nanofluid in a square porous cavity. The published literature shows that the magnetic nanofluid convection problems have been mostly simulated by the single-phase model. In the present work, a two-phase model is used to consider the effects of Brownian diffusion, thermophoresis, and magnetophoresis of particles. The Darcy-Brinkman formulation is employed to treat mass, momentum, and energy transport phenomena in the porous medium. The governing equations are solved numerically by the finite volume technique. Numerical computations are performed for various Rayleigh numbers ( and ), Hartmann numbers ( ), magnetic numbers ( ), and porosity ratio of and 0.9. The current results are validated via comparison with existing experimental or numerical results in the literature. Impacts of MAGNETOHYDRODYNAMICS, ferrohydrodynamics, and ferrohydrodynamics/MAGNETOHYDRODYNAMICS on the flow field and heat transfer rate are discussed separately in detail by contour plots of streamlines, isotherms, and distribution profiles of nanoparticles. Numerical results indicate that at heat is mainly transferred by conduction and its rate is unaffected by porosity, magnetic, or Hartmann numbers. However, at and the average Nusselt number decreases by increasing magnetic and Hartmann numbers.