As a result of a dispute over the land that arose in the mid-18th century, the Magistrate and Prefect of the Dongguan County Court ruled that the Customary Land Law took precedence over the Imperial Law, thus preserving the subsoil:topsoil rights status quo (including the rule that, though the tax-paid land area of the subsoil holder was only the temple itself and its immediately vicinity, the rights of the topsoil holders extended automatically to all adjoining waste and mountainous land, i.e.