Lightning conductor is a device used to protect buildings from the effect of lightning. A metallic rod, taller than the building is installed in the walls of the building during its construction. One end of the rod is kept out in the air and other is buried deep in the ground. The rod provides an easy route for the transfer of electric charge to the ground.
The projected end of the metal rod is at a height more than the height of the building. Hence it receives the charge first during lightning because it is closer to the cloud than the building. As it is good conductor of electricity, it allows all the charge to flow through it there by causing no damage to the buildings.