In tropical agriculture, the vigorously growing Bracken fern causes severe problems by invading pastures and out-competing the common pasture grasses. Due to infestation by that weed, pastures are abandoned after a few years, and as a fatal consequence, the biodiversity-rich tropical forest is progressively cleared for new grazing areas. Here we present a broad physiological comparison of the two plant species that are the main competitors on the pastures in the tropical Ecuadorian Andes, the planted forage grass Setaria sphacelata and the weed Bracken (Pteridium arachnoideum). With increasing elevation, the competitive power of Bracken increases as shown by satellite data of the study region. Using data obtained from field measurements, the annual biomass production of both plant species, as a measure of their competitive strength, was modeled over an elevational gradient from 1800 to 2800 m. The model shows that with increasing elevation, biomass production of the two species shifts in favor of Bracken which, above 1800 m, is capable of outgrowing the grass. In greenhouse experiments, the effects on plant growth of the presumed key variables of the elevational gradient, temperature and UV radiation, were separately analyzed. Low temperature, as well as UV irradiation, inhibited carbon uptake of the C4-grass more than that of the C3-plant Bracken. The less temperature-sensitive photosynthesis of Bracken and its effective protection from UV radiation contribute to the success of the weed on the highland pastures. In field samples of Bracken but not of Setaria, the content of flavonoids as UV-scavengers increased with the elevation. Combining modeling with measurements in greenhouse and field allowed to explain the invasive growth of a common weed in upland pastures. The performance of Setaria decreases with elevation due to suboptimal photosynthesis at lower temperatures and the inability to adapt its cellular UV screen.