Legend has it that Onam commemorates the homecoming of the legendary King Mahabali, the benevolent ruler who once reigned over Kerala.