The first HaitÅrei of 1870 prohibited farmers or merchants from wearing swords and dressing like samurai. This measure was in part an effort to restore public safety and order during the tumultuous period immediately after the Meiji Restoration and during the Boshin War.