Electronic structure of a defect center containing the gallium vacancy and substitutional oxygen atom at nitrogen site (V Ga O N) in zinc blende and wurtzite GaN was analyzed within GGA+U approach. The +U term was applied to d(Ga), p(N), p(O), and d(In). Neutral V Ga O N is in the stable high spin state with spin S = 1. The defect structure is strongly dependent on geometry of the defect and the charge state. Two spin structures, which arise due to two different configurations in V Ga O N , with O N either along the caxis or in one of three equivalent tetrahedral positions in wurtzite structure were analyzed. The weak ferromagnetic coupling between centers was found. The strength of magnetic coupling is increased when there is a complex containing V Ga O N with additional substitutional indium atom at the second neighbor to vacancy gallium site (V Ga O N In Ga). Magnetic coupling between V Ga O N In Ga is ferromagnetic due to strong spin polarization of p electrons of the nearest and distant nitrogen atoms. Keywords GaN. In doping. Complex V Ga O N. Magnetic coupling. LDA+U calculations * O. Volnianska