ZigBee is a standard wireless network protocol for low rate control network with the advantages of low complex, low cost, low consumption and high safety. A Multi- Agent System (MAS) architecture developed for an intelligent inhabited environment (HE) based on ZigBee wireless sensor network is introduced. The MAS has the features like distributed control, cooperation, and coordination that make it suitable for HE applications. The proposed MAS consists of three layers namely bus layer, function layer and management layer. The bus agents in the bus layer correspond to the end-devices of ZigBee, the function agents in the function layer to the routers of ZigBee, the management agent in the management layer to the coordinator of ZigBee. Also, the structure models of bus agent, function agent, and management-agent are built to provide the infrastructure for the cooperation, conflict elimination, and organizational alliance of the agents.