Proline and quaternary ammonium compounds (QAC), in addition to being N-rich, are known to accumulate in plants under different environmental stress conditions. The accumulation of N-rich compounds in plants has been shown to confer stress resistance. The aim of our work is two-fold: first, to study the influence of temperature on proline, QAC, and choline metabolism in tomato leaves; and second, to investigate the relationship between IN source applied (NO3(-) or NH4+) and thermal stress resistance in these plants. To do this, experiments were conducted at three different temperatures (110 degreesC, 25 degreesC, 35 degreesC); at each temperature half of the plants received NO3, and the other half received NH4+. At 35degreesC the plants had the lowest biomass production with respect to 25degreesC (optimal temperature) and 10degreesC (cold stress), suggesting that tomato plants were most affected by heat stress. At 35degreesC, there were also high levels of choline and proline due to the activation of Al-pyrroline-5-carboxylate synthetase (P5CS) and ornithine aminotransferase (OAT), and simultaneous inhibition of proline dehydrogenase (PDH) and proline oxidase (130). However, plants with NH4+ as the IN source exhibited reduced growth with respect to the plants fed with NO3-. This is interesting because, under heat stress (35 degreesC), biomass production, as well as proline and choline accumulation, in NH4+ fed plants was higher than in NO3- fed plants. From this, we concluded that tomato plants fed with NH4+ as the N source show higher tolerance to heat stress (35degreesC) than plants fed with NO3+.