The present invention provides a floating tablet comprising: a therapeutically effective amount of at least one active pharmaceutical ingredient Onosma bracteatum as a gelling agent 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.