There is no explanation for consciousness.
This has been a problem from the very beginning. From the renaissance onwards we have been struggling with this.
Descartes was the first to recognise the problem: how can mind exist in a purely mechanical universe? The answer: substance dualism. There is matter which exists in space and time, and mind which is outside those realms.
Dualism fails on so many levels but the biggest problem is that there is no way mind could act upon matter to control the body. Descartes claimed that the pineal gland in the brain is where the mind controls the body, but I think even he knew he was lying to himself.
Meanwhile, materialism has many many different variations, all of which fail because they can never adequately explain consciousness in terms of matter.
If mind cannot be explained in terms of science then there is a phenomenon in the universe that contradicts the very foundations of science.
This realisation is why I am now officially free from the limitations of science for the first time. I have felt it emotionally before that there is something funny going on here. I have also seen the problem that there is no place for humans or any morality in a materialistic universe. However, this was not enough to convince me... I just took it as an unfortunate fact of reality.
Now I have logical proof that science fails. Back to the drawing board and this time it's my own.