Preheat oven to 400ºF. Wash tomatoes and dry with paper towel. Place tomatoes and garlic in a baking dish. Drizzle it with olive oil and season with salt and freshly ground pepper. Roast it in the oven for 30 minutes. The tomatoes should start to soften and wrinkle a bit. When ready to serve sprinkle chopped basil on the top.