The sun is basically just so big that the gravity of all of its outer stuff compresses its inner stuff so much that the atoms of its inner stuff fuse together. When they do, they release an enormous of amount of energy, which is what we experience as the flaming hot sun. This type of reaction, where the nucleuses of two atoms fuse together, is called a nuclear fusion reaction.
In that scene, with Doc Ock, he's talking about building a nuclear fusion reactor, a device that can create that kind of atomic fusing here on earth and collect the power from it. That device would be mimicking the sun by doing one of the things that otherwise only the sun does in our solar system, fuse atoms together.
If we can develop and build fusion reactors, it's long been seen as a holy grail of energy production. The reaction releases a ridiculous amount of energy with basically no byproducts and doesn't require any kind of nuclear or unsafe fuel (and requires 4x less mass of fuel compared to traditional nuclear, and 4 million times less than oil or coal).
That being said, it is extremely challenging to recreate the pressures and temperatures that are inside the sun and necessary for fusion. Right now there is a giant reactor being built in Europe that uses insanely powerful magnetic fields (ITER), and in the US there's a facility that is using lasers to do it (NIF).
Both are promising first steps, but both are decades away from being able to build an actual practical reactor that we could connect to our grid and rely on.