Remove most of the outer peel of the garlic and cut off the top part of the head of garlic. Drizzle the exposed garlic with the olive oil.
Wrap in foil and roast in the oven for about 40 minutes. Check the centre garlic clove. If it is soft you can stop baking. If not, it needs additional cooking. You can roast it for more time to add some caramelisation. However, check the garlic every 10 minutes so that it doesn’t burn. Once ready, let the garlic cool. Squeeze out the garlic and mash it with a fork.
In a small bowl mix together the mashed garlic, ricotta, salt and pepper. Store in the fridge covered for about 30 minutes.