The main function of a pressure reducing valve is to maintain a constant and reduced pressure downstream of the valve, regardless of fluctuations in the upstream pressure. This is done by adjusting the opening of the valve in response to changes in the upstream pressure, ensuring that the pressure downstream remains within a desired range.