It can take some time. Did you use irish moss or anything else to help it clear? After you bottle, chilling for at least one week will also help it clear up.
Finally, some styles (witbier for exampe) are supposed to be cloudy. I'm not knowledgeable enough about BJCP style guidelines, but...