Using XTEM, REM and PL, the effect of structural quality on the optoelectronic properties of GaAs/Al_xGa_(1-x)As quantum wells grown by MBE has been studied. In addition, the experimental results reveal that the flatness of interfaces in heterostructures can be improved by MBE technique.