One end of the solenoid behaves as a magnetic north pole, while the other behaves as the south pole. The field lines inside the solenoid are in the form of parallel straight lines. This indicates that the magnetic field is the same at the points inside the solenoid.
As shown in figure a strong magnetic field produced inside a solenoid can be used to magnetise a piece of Magnetic material, like soft iron, when placed inside the coil. The magnet so formed is called an electromagnet.