In this paper, we provide a unified and selfconsistent treatment of a functionally graded material (FGM) microbeam with varying thermal conductivity subjected to non-uniform or uniform temperature field. Specifically, it is our objective to determine the effect of the microscopic size of the beam, the electrostatic gap, the temperature field and material property on the pull-in voltage of the microbeam under different boundary conditions. The nonuniform temperature field is obtained by integrating the steady-state heat conduction equation. The governing equations account for the microbeam size by introducing an internal material length-scale parameter that is based on the modified couple stress theory. Furthermore, it takes into account Casimir and van der Waals forces, and the associated electrostatic force with the first-order fringing field effects. The resulting nonlinear differential equations were converted to a coupled system of algebraic equations using the differential quadrature method. The outcome of our work shows the dramatic effect and dependence of the pull-in voltage of the FGM microbeam upon the temperature field, its gradient for a given boundary condition. Specifically, both uniform and non-uniform thermal loading can actuate the FGM microbeam even without an applied voltage. Our work also reveals that the non-uniform temperature field is more effective than the uniform temperature field in actuating a FGM cantilever-type microbeam.