The invention relates to pharmaceutical compositions having analgesic and/or anti-inflammatory effect comprising as active ingredient 2,4-diamino-5-(3,4-dimethoxy-benzyl)-pyrimidine or a pharmaceutically acceptable acid addition salt thereof. The pharmaceutical compositions of the present invention exhibit the desired analgesic and anti-inflammatory effect without causing undesired ulcerogenic side-effects.