UPS systems provide backup power to devices when main power fails. They contain four main components: 1) a rectifier that converts AC to DC power, 2) batteries that store energy, 3) an inverter that converts DC back to AC, and 4) a static switch that switches power sources. Proper use and maintenance of UPS systems, such as periodic discharge of batteries, can extend their lifespan and reliability.