Basil should be added at the end, after the cooking process has completed. This is because heat can reduce its flavor and even give it a slightly bitter taste.