The invention discloses an electromagnetic piling device and an electromagnetic piling method. The electromagnetic piling device comprises a base, a ground coil assembly, a pile, a pile clamping mechanism and a pile coil assembly. The electromagnetic piling device and the electromagnetic piling method have the advantages that impact force / static pressures which are generated during traditional piling can be completely replaced by electromagnetic repulsive / attractive force generated between the coil assemblies; different current waveforms are designed, accordingly, the electromagnetic piling force can be flexibly controlled, and the optimal piling effects can be realized; the current waveforms can be selected, so that the single piling speed can be increased, the piling efficiency can be enhanced, and the electromagnetic piling device is little in vibration and influence on surrounding soil masses; the electromagnetic piling device and the electromagnetic piling method are provided on the basis; the electromagnetic piling device is free of pollution, low in noise, convenient to mount, easy to construct, high in adaptability, expansibility and safety coefficient, is free of influence of soil properties and pile types and is particularly applicable to municipal construction and night construction requirements, in particular to pile foundation engineering in crowded building places, high-rise buildings and buildings with narrow spaces.