In this talk I review some of what we have learned from string theory about the criteria one needs for a quantum theory to be able to consistently couple to quantum gravity (the landscape) as opposed to one that looks consistent but cannot be consistently coupled to gravity (the swampland). Moreover, I review some of the cosmological implications of these conditions for our universe.