Moving averages can be used to identify potential support and resistance levels by looking at the price action around the moving average line. If the price rises above the moving average, it may act as a support level. On the contrary, if the price falls below the moving average, it may be a sign of resistance level being reached.