In an oligopoly, few companies produce the same product and in a monopolistic competition some companies produce similar products, but each one of them produces a slightly different product.
Let's imagine a market in which there are only 2 producers of chocolate- that is an oligopoly (it would not be one if there were 30) .
Now, let's imagine that one of them only produces dark chocolate, and the other only milk chocolate - now, that's a monopolistic competition!