Basil is typically added to a Margherita pizza after it comes out of the oven. This allows the fresh basil leaves to retain their vibrant green color and delicate flavor, ensuring a final burst of freshness with each bite.