Shoring is used in excavation to support the sides of the trench so that it does not collapse. It also provides safety and stability when excavating surfaces for construction, mining, and other purposes.