Every charge has its own electric field.
Field of +ve charges is outgoing while that of -ve charges is incoming.
When opposite charges are kept together, field lines go from +ve to -ve charge & hence they attract each other.
In case of same charges this does not hold & they repel each other.