The present invention provides a pharmaceutical composition for preventing and treating liver fibrosis or nonalcoholic fatty liver disease, comprising 50 to 90% by weight of the Cordyceps sinensis mycelium powder, and 10 to 50% by weight of condensed astragalus powder.本發明係提供一種用於預防及治療肝纖維化或非酒精性脂肪肝之醫藥組成物,包含50至90重量%之冬蟲夏草菌絲體粉末及10至50重量%之濃縮黃耆粉。