Electromagnetism is a process where a magnetic field is created by introducing the current in the conductor. When a conductor is electrically charged it generates magnetic lines. For example, if current i.e., positive charges move in a wire, it produces the magnetic field along the wire, and the direction of magnetic lines and force can be determined using Right-hand Rule.