Since last four decades the information and communication technologies are relying on the semiconductor materials. Currently a great deal of attention is being focused on adding spin degree-of-freedom into semiconductor to create a new area of solid-state electronics, called spintronics. In spintronics not only the current but also its spin state is controlled. Such materials need to be good semiconductors for easy integration in typical integrated circuits with high sensitivity to the spin orientation, especially room temperature ferromagnetism being an important desirable property. GaN is considered to be the most important semiconductor after silicon. It is widely used for the production of green, blue, UV, and white LEDs in full color displays, traffic lights, automotive lightings, and general room lighting using white LEDs. GaN-based systems also show promise for microwave and high power electronics intended for radar, satellite, wireless base stations and spintronic applications. Rare earth (Yb, Eu, Er, and Tm) doped GaN shows many interesting optoelectronic and magnetoptic properties e. g. sharp emission from UV through visible to IR, radiation hardness, and ferromagnetism. The talk will be focused on fabrication, optoelectronic (photoluminescence, cathodeluminescence, magnetic, and x-ray photoelectron spectroscopy) properties of some rare earth doped GaN and InGaN semiconductor nanostructures grown by plasma assisted molecular beam epitaxy (MBE) and future applications.