Gelatin is a key ingredient in panna cotta as it helps it set into a firm texture. However, there are some vegetarian and vegan substitutes for gelatin, such as agar agar or carrageenan, can be used.