Prep the garlic by removing the peel. Add the tomatoes, garlic, peppers, herbs, chili flakes and salt to a dry pan.
Add in the olive oil. You will want to make sure that the olive oil (for the most part) covers the ingredients. This will allow the garlic to soften in the olive oil, rather than pan fry it.
Bring the pan up to a simmer over medium heat. Ideally, you want some rolling bubbles, but be sure not to let the pan get too hot. Don't let the oil start to pop or sizzle.
Let the ingredients simmer together for about an hour, and voila! Your garlic confit is ready to cool down. Once cool, you can spread it on toast, store it for future use or toss it right into your dinner recipe!