The present invention belongs to a pharmaceutical composition preparation field of traditional Chinese medicine, and more particularly relates to a pharmaceutical composition for treating AIDS and preparation method thereof. The pharmaceutical composition of the present invention for treating AIDS comprises the following raw medicinal materials: Cordyceps Sinensis in an amount of 3-6 parts by weight, Dried Radix Rehmanniae in an amount of 4-12 parts by weight, Mylabris in an amount of 1-3 parts by weight, and Rhizoma Anemarrhenae in an amount of 3-6 parts by weight. The clinical trials show that the pharmaceutical composition has a relatively good therapeutic effect for treating AIDS.