Ganesha is Vighneshvara or Vighnaraja, the Lord of Obstacles, both of a material and spiritual order. He is popularly worshipped as a remover of obstacles, though traditionally he also places obstacles in the path of those who need to be checked. Paul Courtright says that “his task in the divine scheme of things, his dharma, is to place and remove obstacles. It is his particular territory, the reason for his creation.”
Krishan notes that some of Ganesha’s names reflect shadings of multiple roles that have evolved over time.Dhavalikar ascribes the quick ascension of Ganesha in the Hindu pantheon, and the emergence of the Ganapatyas, to this shift in emphasis from vighnakartā (obstacle-creator) to vighnahartā (obstacle-averter). However, both functions continue to be vital to his character, as Robert Brown explains, “even after the Purāṇic Gaṇeśa is well-defined, in art Gaṇeśa remained predominantly important for his dual role as creator and remover of obstacles, thus having both a negative and a positive aspect.