Stilbenes are a small family of polyphenolic secondary metabolites that can be found in several distantly related plant species. These compounds act as phytoalexins, playing a crucial role in plant defense against phytopathogens, as well as being involved in the adaptation of plants to abiotic environmental factors. Among stilbenes, trans-resveratrol is certainly the most popular and extensively studied for its health properties. In recent years, an increasing number of stilbene compounds were subjected to investigations concerning their bioactivity. This review presents the most updated knowledge of the stilbene biosynthetic pathway, also focusing on the role of several environmental factors in eliciting stilbenes biosynthesis. The effects of ultraviolet radiation, visible light, ultrasonication, mechanical stress, salt stress, drought, temperature, ozone, and biotic stress are reviewed in the context of enhancing stilbene biosynthesis, both in planta and in plant cell and organ cultures. This knowledge may shed some light on stilbene biological roles and represents a useful tool to increase the accumulation of these valuable compounds.