The electronic properties of chemically modified ZnO ultrathin films with a built-in heterointerface are investigated on the basis of first-principles calculations.