A solid pharmaceutical composition in the form of a gel capsule containing at least one active ingredient and also at least one gelling agent chosen from cellulose derivatives such as hydroxyethylcellulose, hydroxypropylcellulose, hydroxypropylmethylcellulose, methylcellulose, ethylmethylcellulose, sodium carboxymethylcellulose (CMC) and calcium carboxymethylcellulose, and at least one disintegrating agent, the gelling agent and the disintegrating agent being present in a ratio by weight of 0.3 to 0.7/1 and the content by weight of gelling agent(s) being from 10% to 20% of the composition, and method for preparing same.