Type of local government in Korea and Vietnam
The hyangyak (Korean: ) was a contractual arrangement that allowed for a degree of local government in the history of Korea and Vietnam.
In Korea.
During the rule of Jungjong (1506–1544), the contract was enforced by the local level officials. Specific details were circulated in text and operated as an informal common law. The "hyangyak" became the core of Korea's social law and the vehicle of a degree of local autonomy for its villages.
It was a stepping stone for the Joseon Dynasty in implementing government at the local level. Local "yangban", or Korean scholar-officials were lifted in importance because of the role that they played. The implementation of the "hyangyak" opened the way for schools and shrines and tied the "yangban" to the community as instrumental in strengthening the government at all levels.
In Vietnam.
Throughout Vietnam thousands of villages had their own independent legal codes known as the "Hương ước" (鄉約) that governed the social relations within the village community, thousands of written regulations existed and the central administration often recognised them. The origins of these village conventions is unknown, according to jurist Lê Đức Tiết they may date back as far as the Trưng sisters period but were unwritten until the Trần dynasty period. Doctor of Oriental Studies Nguyễn Văn Vịnh divides these conventions into two categories "pre-written conventions" ("tiền hương ước") and "officially written conventions" ("hương ước thành văn chính thức"). 
The "Hương ước" contained rules about various legal practices like land management, marriage, labour relations, arbitration of disputes, as well as local customs such as family relations, village relations, ghosts, ancestor worship, sacrifice, mourning, and longing. 
During the colonial period both the government-general of French Indochina and the government of the Nguyễn dynasty attempted reform these rules and regulations in their favour. To expand their power into Vietnamese hamlets and villages the French administration issued models for the villages to follow, but many Vietnamese villages still functioned independent of the French and Nguyễn administrations. The French reformed Vietnamese marriage and funeral laws in order to weaken the influence of the "Hương ước".
In 1954 the "Hương ước" system was abolished in North Vietnam as a part of its land reforms. The system was seen as "a remnant of a backward feudal system" by the North Vietnamese government and was replaced with a Socialist cooperative production model and a new social structure based on the system of the Soviet Union.
During the 1980s in the Socialist Republic of Vietnam during the "Đổi Mới" reforms the "Hương ước" were re-recognised and re-evaluated in an attempt to restore the village customs. Today the "Hương ước" is no longer as culturally relevant as it was before, but heavily procedural under the supervision of the district-level People's Committee.
References.
 ;templatestyles src="Reflist/styles.css" / ;