This paper proposes a weighted priority-based optimal energy distribution scheme among microgrids. Since this scheme intend to allocate the weighted priority to the neighboring energy provider in microgrid, the energy requesting-consumer can be receive the optimal energy. Using the optimal energy distribution modeling, this scheme provides the optimal energy solution to the energy neededconsumer. As a result, solving the weighted prioritybased optimization problem maximizes the user satisfaction.