It is desired to provide a pharmaceuticalcomposition containing a compound represented by formula(I) or a pharmaceutically acceptable salt thereof, or asolvate thereof, which exhibits an inhibitory effect onactivated blood coagulation factor X, and is useful as anagent for preventing and/or treating thrombosis, whereinthe pharmaceutical composition exhibits favorabledissolution properties. The present invention provides amethod for producing a pharmaceutical compositioncontaining a compound represented by formula (I),comprising the step of mixing a compound represented byformula (I) or a pharmaceutically acceptable salt thereof,or a solvate thereof, one or more excipients selectedfrom the group consisting of a sugar alcohol and a water-swellingadditive, a disintegrant, and a binder underconditions for keeping the maximum water content of thegranules during granulation at 10% or less.