Glaze the fennel in the olive oil over a medium heat. Reduce the flame and add the garlic and salt. Simmer, stirring occasionally, for about 20 minutes, until the fennel is soft.
Add the thyme and basil and season with the pepper. Pour the mixture into small clay bowls, cover with about 1 cm of olive oil, store in the refrigerator overnight.