The ideal time for trekking in the Himalayas is during the pre-monsoon (spring) and post-monsoon (autumn) seasons, which typically fall between March to May and September to November, respectively. These months offer stable weather conditions and clear mountain views.