 As mining gradually became a task for specialized craftsmen, miners moved in large groups and they formed settlements with their own customs close to mines.
<clarity>  As mining gradually became a task for specialized craftsmen, miners moved in large groups and they formed settlements with their own customs close to mines.
 As mining gradually became a task for specialized craftsmen, miners moved in large groups and formed settlements with their own customs close to mines.