Catalans did a referendum for independence. The Yes won by 90%. But the referendum was not legal according to the Spanish law. The spanish won't allow a legal referendum because they now there is a majority who want independence.
No, Catalans didn't did a referendum, Catalan Government did on illegal referendum