Custard is a versatile dessert made from a mixture of milk or cream, sugar, and egg yolks, which is cooked until thickened. It can be served on its own or used as a filling for pastries and pies. There are also variations, such as custard that includes gelatin or cornstarch as thickening agents. Custard can be served warm or cold and is often flavored with vanilla or other ingredients.