Lo Wai was the first of the five wai — walled villages — built by the Tang clan in the early 14th century to protect themselves against piracy and clan wars. Much of the original walls and internal layout still exist here, with a gateway and an entrance tower which protect the central ancestral hall and dwellings.