The invention relates to an oral pharmaceutical composition comprising coated particles of a complex of at least one active agent with an ion-exchange resin, wherein said particles are coated with a bioadhesive coating layer comprising at least one bioadhesive material.The invention also relates to a process for preparing the oral pharmaceutical composition.