The solar wind is a stream of charged particles released from the upper atmosphere of the Sun. This plasma consists of mostly electrons, protons and alpha particles with energies usually between 1.5 and 10 keV; embedded in the solar-wind plasma is the interplanetary magnetic field.
The solar wind varies in density, temperature and speed over time and over solar longitude. Its particles can escape the Sun's gravity because of their high energy resulting from the high temperature of the corona and magnetic, electrical and electromagnetic phenomena within it.
NOTE: Above information has been taken from wikipedia and/or official websites of topics.