1 large round bread loaf or boule (about 8 inches in diameter)
1/4 cup basil pesto
1 pound fresh mozzarella cheese, cut to 1/4-inch-thick slices
4 large, ripe tomatoes, cut to 1/4-inch-thick slices
1 cup fresh basil leaves
Cut the bread in half horizontally. Hollow out and remove most of the soft interior of the bread from each half and save for another use, like DIY breadcrumbs.
Spread the cut sides of the bread with the pesto. Layer half of the mozzarella, half of the tomato, and half of the basil inside the bread bottom. Repeat with the remaining mozzarella, tomato, and basil. Place the top on the sandwich, tightly wrap the sandwich in 2 layers of plastic wrap, then refrigerate for at least 1 hour or up to 1 day.
If you prefer a warm sandwich, arrange a rack in the middle of the oven and heat to 350°F. Wrap the sandwich with aluminum foil, place on a baking sheet, and bake just until the cheese is melted, about 15 minutes. Cut the sandwich into wedges and serve immediately.