The Sultanate of Oman, being a petroleum-producing country, depends on fossil fuels for the majority of its power production. The fossil fuel sources are on the verge of extinction if they are used at the current rate. Globally, buildings are expected to generate the energy they demand using renewable energy sources and, if possible, feed it to the grid. Zero Energy Buildings (ZEBs) and Near Zero Energy Buildings (NZEBs) are put into action for the above purposes. With an average global solar irradiation of 5.56 kWh/m2/day and an average wind speed of 6.58 knots, solar and wind are the primary renewable energy sources that can be yoked in Oman. The solar and wind power plants that are being built in Oman are following the Grid Code Operations as of 2020. Buildings in Oman, newer ones and old ones, are constructed using traditional building materials, leading to poor performance of the building's peripheral enclosure and little or no emphasis on sustainability. This has led to thermally bungling building envelopes in Oman, contributing to high energy consumption for lighting and cooling buildings, which invariably adds to global warming. Extensive use of fossil fuels has also escalated the average global surface temperature. The main aim of this paper is to analyze the design and development of ZEB/NZEB technology to be used in an educational institute in Salalah, Sultanate of Oman, incorporating state-of-the-art techniques in harnessing renewable energy sources with Battery Storage Systems (BSS), construction/modification and orientation of buildings towards energy-efficient buildings, smart and energy-efficient systems and appliances, HVAC approaches, and automated real-time conservation practices using Internet of Energy (IoE).