When the main power is not available, an uninterruptible power supply (UPS) uses battery and inverter.
An inverter (or power inverter) is a power electronics device which used to convert DC voltage into AC voltage.