The Gayatri mantra takes its popular name not from its content but from its meter, gayatri, a Vedic poetic meter of three lines of eight syllables each, which the verse from the Rig Veda shares with a number of other hymns composed in the same form. Its content addresses Savitr, a solar deity associated in Vedic religion with the act of impelling or setting things in motion, asking that Savitr stimulate or inspire the mind's understanding, an intellectual rather than a material petition distinguishing it from many other Vedic hymns focused on cattle, offspring or victory in battle.
Vedic tradition attributes its composition to the sage Vishvamitra, one of the most prominent rishis credited with Rig Vedic hymns, though as with most Vedic attribution this reflects a traditional association preserved across a long oral transmission rather than documentary authorship in a modern sense. Its ritual use historically required the sacred thread ceremony, upanayana, marking initiation into Vedic study, and it was traditionally restricted to initiated males of the twice-born castes, a restriction later Hindu reform movements and much of contemporary practice have significantly widened or abandoned outright.