With the rapid development of wireless communication technology, Near field communication (NFC) and Ad-Hoc network (ZigBee) have attracted wide attention for their security, speed and low power consumption. NFC has been used in access control research. In the past, the system only considered the switch control of the door lock, but could not achieve safety management in large building scenarios, resulting in security loopholes and poor maintenance of access control. In order to solve the above problems, Automatic networking access control system based on NFC and ZigBee technology is implemented. The access control and Internet of Things system (IoT) are fused through NFC. NFC identity information is transmitted through ZigBee to the management for identity authentication. The wireless transmission adopts the improved reduced AES advanced encryption algorithm R-AES, which ensures reliable data transmission. On this basis, the security of access control is realized. Practical results show that the Ad-Hoc network access control system and method for edge NFC terminal can improve the management efficiency and security of building access control.