The rain shadow effect occurs when moist air ascends a mountain range, cools and loses moisture as precipitation on the windward side, leaving the leeward side dry as descending air warms and retains moisture. This phenomenon creates distinct ecological zones and influences local climate, often resulting in arid regions adjacent to lush areas.