The turn of the 1500s was characterised by conflicting laws of the age. It was therefore necessary to systematise legal habits and practices. The ruler entrusted Werbőczy with the task, who, upon retiring to his estate in Alsópetény, created the greatest accomplishment of his life.