The compound, solid Al2O3, is formed from solid aluminum and oxygen gas under certain conditions.
Formation of Al2O3
Solid aluminium oxide, Al2O3, is formed from its components elements as follows:
2Al (s) + 3O2 (g) ----------> 2Al2O3 (s)
The state of the aluminum element is solid, that of oxygen is gas, and that of the product, Al2O3, is solid.
More on Al2O3 can be found here: https://brainacademy.pro/question/25873251