The basics function of inverter is to convert DC power into AC power, regulating the voltage, current and frequency of the signal.

12V battery generate DC supply and inverter will change it into, AC supply of 220V, 50Hz to use to operate any appliances.