The scheme of intelligent Building based on distributed generation and micro-grid is presented in this paper. There are five parts in the scheme: distributed generation, storage device, charge-discharge device of EV, micro-grid control and energy management system, smart home system. The scheme of the intelligent building in this paper has been realized in displayed project of intelligent community in china. The feasibility of establishing a micro grid system at the branch of power grid is analyzed after evaluating the performance of the micro grid system on saving power, reducing cost in transmit line, and increasing the security. Due to the analysis, this micro system has good performance in these aspects and has a great future in the power grid.