Wherever possible, aircraft take-off and land into the wind, so weather is one of the most important reasons in deciding which runway to use.
Larger airports often have more than one runway, so a runway is always available for different wind directions. Airports with one runway usually build the runway to align with the prevailing seasonal wind.
Air traffic controllers monitor wind and runway selection at all times, as weather conditions can quickly change. Pilots also monitor and report wind changes and can request a runway that is best suited to the capability of their aircraft.
Once the runway is chosen, it needs to be available for an extended time to allow pilots to plan their descent, approach and landing. As this involves predicting developing weather, aircraft may continue to land on a runway when local weather conditions no longer appear to require it.