He is the lord of Shiva's armies (
gana),
and the god of
wisdom. He is the lord of new beginnings,
and thus the first doorway in ceremonies.
Ganesha is honoured as the god of obstacles: he throws them up, and subsequently helps you to come through. Seeking refuge with Ganesha means following the path of the warrior.