Total solar and UV irradiance observations over the last 18 years have demonstrated that the solar energy flux changes in parallel with the solar cycle, being higher during maximum activity conditions. In this paper we compare the variations of total solar and UV irradiances during solar cycles 21 and 22. The total solar irradiance data used in this paper were obtained by the SMM/ACRIM I, UARS/ACRIM II and ERBS experiments. The combined Nimbus-7 and NOAA9 Mg II h & k core-to-wing ratio, and that index from the UARS/SUSIM experiment have been used to represent UV irradiance changes. The space-based irradiance observations are compared to the Mt. Wilson Magnetic Plage and Sunspot Indices and the Photometric Sunspot Index, which is derived from the area and position of sunspots published by the NOAA World Data Center Solar Geophysical Data Catalogue. We find that the variations in solar UV irradiance were similar during the maximum and minimum of solar cycles 21 and 22. Total solar irradiance observed by the SMM/ACRIM I and UARS/ACRIM II experiments indicate that the minimum level of total irradiance might be higher for cycle 22 than for cycle 21, whereas the ERBS total irradiance measurements do not show significant difference between the minima of the two cycles. The possible reasons of these differences in the irradiance values during the minima of the two solar cycles are discussed in this paper.