Direct shear tests and triaxial tests are common laboratory tests used to determine the shear strength of soils and rocks. A direct shear test applies a lateral load to a soil sample to induce shear failure along a horizontal plane, allowing measurement of cohesion and friction angle. A triaxial test confines a soil sample between vertical platens and a fluid pressure cell, applying different compressive stresses to induce shear and failure along an internal plane. Triaxial tests provide more detailed stress-strain data prior to failure and better simulate in-situ stresses, but require more complex equipment. Both tests are used to characterize shear strength for modeling soil behavior in engineering projects.