Dear Student,
Group 1 and group 2 belong to alkali metals and alkaline earth metals respectively. Metals forms basic oxides, and so oxides of group 1 and group 2 are also basic in nature. They are basic in nature because on reaction with water they produce base. Basic character of these oxides increases on going down the group as size of metal increases. However, Be forms amphoteric oxide which is due to diagonal relationship of Be with Al.
Some of the oxides are : Na2O , K2O, MgO, CaO, etc.