In the case of the self, we build a model of what we are based off of data we gather from introspection and from people who are close to us. But this model is constantly in flux, and can never be said to actually reach the true self (if there is a true self-- and perhaps there is, but maybe it is always changing).
Nonetheless, we rely heavily on our sense of self. This sense helps us make hard decisions because we want to keep our actions in line with who we think we are-- we need that structure to survive. So, even though it can't be said to be real in any objective sense, we treat it as though it were real and we let it guide us to the point that most of the time we do think it's real. That's the illusory aspect.
You can really bring this over into anything you perceive. An object? Well, no. The object is not really distinct from the air surrounding it, except that we treat mass and visual outline (which is also an illusion created by our visual cortex) as indicators of being "separate", even though in the strictest sense the object is completely entangled in the environment of molecules, atoms, quanta, etc.