The katha
Ganesha had been honoured at a great feast and had eaten all the modakas his devotees offered him. Late in the night he set out for home, riding on his little mouse.
On the way a snake slid across the path. The startled mouse stumbled, and Ganesha tumbled to the ground. His full belly burst open and the modakas rolled out across the road. Calmly, Ganesha gathered them back, closed his belly and tied the snake around it as a belt.
High above, Chandra the moon had watched it all — the tumble, the rolling sweets, the snake for a belt — and he laughed out loud. Chandra was proud of his beauty, and he did not hide his mockery.
Ganesha looked up and said: you laugh at others and think your own beauty will last. Then let no one look at you with pleasure. Chandra's light faded, and the night sky was empty of him.
The devas came to Ganesha and asked him to forgive the moon, for the world needed its cool light. Chandra himself came with folded hands and asked pardon. Ganesha's anger was never meant to last. He softened his word: the moon would wax and wane, so that he would always remember humility, and on one night a year, the bright-fortnight Chaturthi of Bhadrapada (Ganesh Chaturthi), people would avoid looking at him.
That is why, on Ganesh Chaturthi, many people avoid looking at the moon. On Sankashti, the Chaturthi of the waning fortnight, it is the other way round: devotees wait for the moon to rise, offer it water, and only then break their fast.