The optical semiconductor of the present invention is an optical semiconductor containing In, Ga, Zn, O and N, and has a composition in which a part of oxygen (O) is substituted by nitrogen (N) in a general formula: In2xGa2(1-x)O3(ZnO)y, where x and y satisfy 0.2<x<1 and 0.5≦y. In the general formula, x is preferably 0.5, and furthermore, y is preferably 1 or more and 6 or less, and more preferably 2 or 6. It is preferred that the optical semiconductor of the present invention have a wurtzite crystal structure. The optical semiconductor of the present invention is an excellent optical semiconductor because it has a smaller band gap, can utilize visible light, and has high carrier mobility and thus has high quantum efficiency.