The optimal times for the Annapurna Base Camp trek are during the pre-monsoon (spring) season from March to May and the post-monsoon (autumn) season from September to November. These periods provide the best weather conditions and the clearest views of the mountains.