The present disclosure provides a pharmaceutical composition comprising of a polyallylamine polymer or pharmaceutically acceptable salts thereof excipient based hydrous granules and optionally moisture retaining agents. The present disclosure also provides process embodiments for preparation of the pharmaceutical compositions comprising of modified moisture activated granulation technique. Polyallylamine polymers used are Sevelamer, Colesevelam or pharmaceutically acceptable salts thereof, preferably Sevelamer HCl, Sevelamer carbonate or Colesevelam HCl. The Tablet according to the present disclosure comprising of polyallylamine polymer which can be prepared by using modified moisture activated granulation technique, by adding one or more excipient based hydrous granule(s), contacting the said hydrous granule(s) with polyallylamine polymer and optionally adding one or more moisture retaining agents and lubricant(s) resulting in the compression into a tablet form using suitable tools.