In this sense, then, one can say that string theory "predicts" electromagnetism: D-branes are a necessary part of the theory if we permit open strings to exist, and all D-branes carry an electromagnetic field on their volume.