The present invention relates to a method and a device for shaping apharmaceutically active substance in the form of powders, granules,multiparticulatemedicaments, in particular pellets and microcapsules, for the production of atablet ora multiparticulate medicament by means of ultrasound, with an ultrasoundgenerator,a sonotrode and a mould, into which the pharmaceutically active substance canbepoured.