Mining in ancient Rome utilized hydraulic mining and shaft mining techniques in combination with equipment such as the Archimedes screw. The materials they produced were used to craft pipes or construct buildings. Quarries were often built through trial trenching and they used tools such as wedges to break the rock apart, which would then be transported using cairns and slipways. Mines typically used slaves and lower-class individuals to extract and process ore. Usually their working conditions were dangerous and inhumane, resulting in frequent accidents and even suicidal ideation. These areas were divided into districts and were regulated by several laws such as the lex metalli vispascensis.