The PV Solar Panels convert sunlight into DC power.
The power from the solar panels is sent to an inverter. These inverters convert DC power to AC power.
The electricity is gathered throughout the solar farm in transformers and then into a substation that converts the voltage to meet the higher voltage of the distribution or transmission lines.
The generated electricity is fed into the grid. Some of the solar generated electricity might be consumed close by, some might travel to other cities and even other states.