Overview
The Eight Gates Golden Lock Formation is a battle formation that Cao Ren deploys against Liu Bei in Romance of the Three Kingdoms. Xu Shu, using the alias Shan Fu, sees through it. In the novel, Xu Shu says that the formation has eight gates: Rest, Life, Injury, Obstruction, View, Death, Alarm, and Opening. Entering through the gates of Life, View, or Opening brings good fortune; entering through Injury, Alarm, or Rest brings harm; and entering through Obstruction or Death brings destruction. He also says that although the eight gates are neatly arranged, “it merely still lacks someone directing it in the center”; if they attack through the Gate of Life at the southeast corner and fight their way out through the Gate of View due west, the formation is bound to fall into disorder on its own.
Origins
In chapter 36 of Romance of the Three Kingdoms, Cao Ren disregards Li Dian's advice to retreat to Fancheng. The next day, he advances to the beat of drums, deploys this formation, and sends someone to ask Liu Bei, “Do you recognize my formation?”
Notable Episodes
The novel describes how Liu Bei follows Xu Shu's advice and orders Zhao Yun to fight his way in from the southeast and out toward the west. Cao Ren's army falls into chaos and is defeated, as recounted in Xu Shu (Shan Fu) Breaks the Eight Gates Golden Lock Formation.
History and the Romance
Records of the Three Kingdoms did not record this formation.

