The law of attraction states that like attracts like.
This includes thoughts as well as people and things. Based on this idea, people create their own realities according to their preferences. If I like to surf, I will attract other people who also like to surf. Simple enough.
But the law is potentially more powerful than that, especially when we use it purposefully. Follow the link here for more on using the law of attraction and how it works.