A drug carrier for treating of gastrointestinal ulcer comprises a microspheroid having a substrate and a plurality of particles distributed over and covered by the substrate, wherein the substrate is alginate and the plurality of particles is a drug for treating of gastrointestinal ulcer; and a coat covering up the surface of the microspheroid, which contains chitosan.