Along with the economic development and ruling policies of the Vietnam’s feudal dynasties, the cities of Vietnam in history (such as Thăng Long - Kẻ Chợ, Phố Hiến, Hội An, etc.) had a flourish, especially in the 17th and 18th centuries. The trading process and dense population with a variety of sectors in urban areas cre-ated numerous problems in managing the import and export of goods at commercial ports, foreign trading posts, transportation within the royal citadel and citizens’ residence. Therefore, the guarantee of security and order in urban areas had been set. The article focuses on the state regulations and two medieval laws through which to understand how Vietnamese ancestors maintained urban security and order in history and draw some lessons for the maintenance of urban security and order today.Cùng với sự phát triển về kinh tế, chính sách cai trị của các vương triều phong kiến Việt Nam, các đô thị Việt Nam trong lịch sử đã có sự hưng khởi, đặc biệt vào thế kỉ XVII, XVIII như Thăng Long - Kẻ Chợ, Phố Hiến, Hội An… Quá trình giao thương, dân cư đông đúc với nhiều thành phần tại các đô thị đã làm nảy sinh nhiều vấn đề về quản lý xuất nhập hàng hoá tại các thương cảng, các thương điếm của người nước ngoài, vấn đề đi lại trong hoàng thành, cư trú của người dân… Vì vậy, việc đảm bảo an ninh trật tự trong các đô thị đã được đặt ra. Bài viết tập trung khai thác các quy định của nhà nước và hai bộ luật thời trung đại để thông qua đó tìm hiểu các phương thức cha ông ta trong lịch sử quản lý an ninh trật tự đô thị ra sao và rút ra một số giá trị đối với việc duy trì an ninh trật tự đô thị hiện nay.