The Mars 2020 mission seeks to conduct a new scientific exploration on the surface of Mars. The Perseverance Rover will be sent to the surface of the Jezero Crater region to study its habitability, search for biosignatures of past life, acquire and cache samples for potential return, and prepare for possible human missions. To enable these objectives, an innovative Sampling and Caching Subsystem (SCS) has been developed and tested to allow the Perseverance Rover to acquire and cache rock core and regolith samples, prepare abraded rock surfaces, and support proximity science instruments. The SCS consists of the Robotic Arm (RA), the Turret and Corer, and the Adaptive Caching Assembly (ACA). These elements reside and interact both inside and outside of the Perseverance Rover to enable surface interactions, sample transfer, and caching. The main body of the Turret consists of the Coring Drill (Corer) with a Launch Abrading Bit initially installed prior to launch. Mounted to the Turret main structure are two proximity science instruments, SHERLOC and PIXL, as well as the Gas Dust Removal Tool (gDRT) and the Facility Contact Sensor (FCS). These work together with the RA to provide the sample acquisition, abraded surface preparation, and proximity science functions. The ACA is a network of assemblies largely inside the front belly of the Rover, which combine to perform the sample handling and caching functions of the mission. The ACA primarily consists of the Bit Carousel, the Sample Handling Assembly (SHA), End Effector (EE), Sample Tubes and their Sample Tube Storage Assembly (STSA), Seals and their Dispenser, Volume, and Tube Assembly (DVT), the Sealing Station, the Vision Station, the Cover Parking Lot, and additional supporting hardware. These components attach to the Caching Component Mounting Deck (CCMD) that is integrated with the Rover interior. This work describes these major elements of the SCS, with an emphasis on the functionality required to perform the set of tasks and interactions required by the subsystem. Key considerations of contamination control and biological cleanliness throughout the development of these hardware elements are also discussed. Additionally, aspects of testing and validating the functionality of the SCS are described. Early prototypes and tests matured the designs over several years and eventually led to the flight hardware and integrated testing in both Earth ambient and Mars-like environments. Multiple unique testbed venues were developed and used to enable testing from low-level mechanism operation through end-to-end sampling and caching interactions with the full subsystem and flight software. Various accomplishments from these testing efforts are highlighted. These past and ongoing tests support the successful preparations of the SCS on its pathway to operations on Mars.