Most are a foam or liquid which is designed to solidify as the air rushes out of the hole in the tyre, creating a blockage that plugs the puncture. Others are kits which use a rubber bung and glue.