When fighting Bowser in the final level of the game, his lower half will not do damage to you. That means you can avoid damage from his ground-pound attack by ducking if you have obtained a power-up at some point, or, if Small Mario, you can walk under him and through him without sustaining damage.