Preheat the oven to 400 degrees F (200 degrees C).
Place the tomato halves in a shallow baking dish in which they can all fit in snugly side by side. Insert the whole cloves of garlic in between the tomatoes. Brush olive oil over the top and sprinkle with basil. Season with salt and pepper.
Bake uncovered for 35 to 45 minutes, until tomatoes have softened and are sizzling in the pan with the edges slightly charred. Serve while hot.