Artisans and merchants occupied different levels in ancient Japan's social hierarchy. Artisans, who made goods like swords, held the third highest position as they supplied important items. Merchants, who sold what others produced, were at the lowest level. The five main crafts of carpentry, cooperage, smithing, pottery, and lacquerwork were highly respected as they built infrastructure and goods for the shogun using secret tools passed down through generations.