Abstract This research delves into the optimization of wavelength division multiplexing (WDM) within free space optical (FSO) communication systems, aiming to enhance the system’s resilience against atmospheric disruptions. FSO communication, known for its high bandwidth capabilities in unlicensed frequency bands, often encounters reliability issues due to weather-related signal degradation. By integrating a novel WDM-FSO approach, this study seeks to extend the operational range by using switching technique, thereby ensuring consistent and reliable communication. The introduction of a sophisticated switching and fork mechanism is pivotal in this context, facilitating dynamic signal routing and the strategic placement of optical amplifiers to counteract the impact of weather fluctuations and geographical challenges on signal integrity. This system, engineered to support a data transmission rate of 25 Gbps, caters to the needs of applications requiring high bandwidth. Through rigorous performance evaluation based on the Q-factor and BER under various atmospheric conditions, the effectiveness of the WDM-FSO system is demonstrated. The findings are detailed through graphs and tables, providing a comprehensive understanding of the system’s performance. This study makes a significant contribution to the field of wireless optical communication by presenting an optimized WDM-FSO system capable of overcoming weather-related obstacles especially at places where weather conditions are changed very frequently, marking a step forward in establishing more reliable FSO communication networks.