It is made by heating barium oxide. This process used to be used to get oxygen from the air. Barium oxide was heated to around 300°C, absorbing oxygen and making barium peroxide. The barium peroxide was heated above 500°C, releasing the oxygen. Then it could be reused.