To defeat Mario in Sonic Lost in Mario World, throw a mushroom at him. Landing the mushroom hit is the key to beating him.