The potential electric energy of a charge at a point in the electric field is the work carried out by the field when the charge is brought from infinity to the aforementioned point. You can work out some of the consequences of this definition in the following visual.