Solar energy is harnessed in many ways. The most common is through photovoltaic cells. When two pieces of silicon, P and N, are put together, they create an electromagnetic field. When sunlight strikes the top layer of silicon, it forces electrons down into a current. This current is collected with metal leads and wires and is electricity. Therefore, you have solar energy.