Masting, the synchronous highly variable flowering across years by a population of perennial plants, has been shown to be precipitated by many factors including nitrogen levels, drought conditions, spring and summer temperatures. However, the molecular mechanism leading to the initiation of flowering in masting plants in particular years remains largely unknown, despite the potential impact of climate change on masting phenology. We studied genes controlling flowering in Chionochloa pallens, a strongly masting perennial grass. We used a range of in situ and manipulated plants to obtain leaf samples from tillers (shoots) which subsequently remained vegetative or flowered. Here, we show that a novel orthologue of TERMINAL FLOWER 1 (TFL1; normally a repressor of flowering in other species) promotes the induction of flowering in C. pallens (hence Anti-TFL1), a conclusion supported by structural, functional and expression analyses. Global transcriptomic analysis indicated differential expression of CpTPS1, CpGA20ox1, CpREF6 and CpHDA6, emphasising the role of endogenous cues and epigenetic regulation in terms of responsiveness of plants to initiate flowering. Our molecular-based study has provided insights into the cellular mechanism of flowering in masting plants and will supplement ecological and statistical models to predict how masting will respond to global climate change.