In 1517 and 1518, the first gun-control laws were introduced by Holy Roman Emperor Maximilian I, when he attempted to ban the manufacture or possession of matchlocks; being compact and more reliable than earlier firearms, they were seen as an ideal assassin's weapon. The matchlock nevertheless remained popular as a sporting arm and weapon. Meanwhile, the new Spanish musket became a common weapon of war for nearly a century.