Gaskets are sealing devices placed between two surfaces to prevent leakage of liquid or gas. They are crucial in plumbing systems to ensure watertight connections, prevent leaks, and maintain the integrity of the system. Made from materials like rubber, silicone, or cork, gaskets conform to uneven surfaces, filling gaps and creating a secure seal.