Mountains influence weather patterns in several ways. One of the key ways is through orographic lifting, where air is forced to rise as it encounters a mountain range. As the air rises, it cools and condenses, leading to cloud formation and potentially precipitation on the windward side of the mountain. This can create a rain shadow effect, where the leeward side of the mountain range receives less precipitation due to the moisture being already released on the windward side. Additionally, mountains can also act as barriers to the movement of air masses, leading to variations in temperature, wind patterns, and precipitation on either side of the mountain range.