The present invention provides a floating tablet comprising: a therapeutically effective amount of at least one active pharmaceutical ingredient Sterculia foetida gum at least one gas generating agent and at least one excipient selected from the group consisting of binders, diluents, disintegrants, lubricating agents, wetting agents, polymers, surfactants, sweeteners, flavours, pH adjusting agents, glidents, coating agents, plasticizers and colorants.