How in the world do solar panels work?

How in the world do solar panels work?