The upper-ocean processes controlling the near-surface layer temperature in the western Gulf of Mexico (GOM) are examined by estimating the contributing terms in the heat equation based on a 54-year simulation of an eddy-resolving HYbrid Coordinate Ocean Model (HYCOM). An eddy-active region defined by large surface eddy kinetic energy, representing the Loop Current eddies (LCEs) primary trajectory region, is selected for analysis. Both observations and the simulation reveal that the mean net surface heat flux cools the northern GOM and warms the southern GOM. Mean horizontal heat advection contributes to an overall cooling in the eddy-active region. Mean vertical heat advection has a strong seasonal variability associated with the strong seasonal cycle of the mixed layer process: winters tend to have a strong downward heat advection in the eddy-active region and a strong upward heat advection in the rest of the western GOM, while summers tend to have a weak advective heat flux. The downwelling (upwelling) is primarily due to the dominant anticyclonic (cyclonic) wind stress curl. Mean eddy heat flux convergence contributes to the overall warming in the upper ocean of the western GOM. Diffusive flux is not small across the thermocline, and it is expected to have an insignificant influence on the near-surface temperature.