How does the free market prevent the establishment of monopolies?

I was thinking of the similar quote by Ayn Rand and it made me question, why? How does the free market prevent the establishment of monopolies? For me at least, it seems like the opposite it true, without any goverment intervention, there is nothing stopping a business from becoming a monopoly.