The hyangyak (Korean: 향약) was a contractual arrangement that allowed for a degree of local government in the history of Korea and Vietnam.