Analysis of heat and fluid flow transport due to natural convection and magnetohydrodynamic (MHD) flows in a square enclosure with a finite length heater has been performed using the differential quadrature (DQ) technique. The heater with constant heat flux is located on the bottom wall of the enclosure and isothermal boundary conditions are applied to the right vertical wall while the remaining walls are adiabatic. The effects of heater length (0.2 epsilon 0.8), heater location (0.1c/L0.9), and direction of magnetic force (0 degrees phi 90 degrees) for different values of Grashof (103Gr106) and Hartmann numbers (0Ha100) on the heat and fluid flow in the enclosure are studied. According to the results obtained, heat transfer reduces when increasing the Hartmann number. The rate of reduction is higher for high values of Grashof number. The heat transfer rate for the heater closer to the cold wall is considerably higher than the heaters far from the right wall.