Garlic Confit in Olive Oil

Garlic confit is one of the great cheap luxuries of the kitchen: whole cloves cooked gently in olive oil until they turn soft, sweet and golden, leaving you with both a spreadable garlic and an infused oil. It’s easy — but garlic in oil carries a genuine food-safety rule worth taking seriously.
How to make it
Peel a generous quantity of garlic cloves — a couple of whole heads — and put them in a small saucepan. Pour in enough olive oil to cover them completely. You don’t need your most expensive bottle here; a sound, decent extra virgin or a milder oil both work, since gentle heat will mute the rawest pepper anyway. Cook very low — the oil should barely shiver, never fry — for around 30–45 minutes, until the cloves are soft enough to crush with a spoon and pale gold. Don’t let them brown hard or the garlic turns bitter. You end up with melting cloves and a fragrant oil, both ready to use.
Using it — and storing it safely
Smear the soft cloves on toast, stir them into mash, whisk them into dressings; drizzle the garlic oil over roasted vegetables or soup. Here is the caution, and it matters: garlic in oil can, in the wrong conditions, allow growth of the bacterium behind botulism, which is dangerous. Do not keep garlic confit at room temperature. Refrigerate it as soon as it cools, keep it submerged in the oil, use it within about a week, and freeze any surplus. This isn’t fussiness — it’s the one rule that turns a lovely staple into a safe one.
Never store homemade garlic-in-oil at room temperature, and don’t bottle it as a gift to sit on a shelf. Refrigerate, keep cloves under the oil, use within roughly a week, freeze the rest. The oil will cloud and firm in the fridge — that’s normal; it clears at room temperature. When in doubt, throw it out.
Method from general home cooking; food-safety guidance per standard advice on garlic-in-oil — not medical advice.