A UPS is meant for supplying electrical power (typically mains voltage) when the grid fails - either completely or brown-outs. Some UPS types can condition the power so the voltage is in range of the nominal voltage (eg. 230V ±10%)

There exist three main types of UPSes (and multiple variations thereof).

The batteries in UPSes are typically some sort of sealed-lead-acid, and can be recycled - sometimes with a discount from the manufacturer.

Further reading:

* https://community.fs.com/blog/line-interactive-vs-online-vs-offline-ups.html * https://download.schneider-electric.com/files?p_enDocType=White+Paper&p_File_Name=JSII-5YQSBR_R1_EN.pdf&p_Doc_Ref=SPD_JSII-5YQSBR_EN