An electric field is created when a source charge exerts a force on surrounding charges, causing them to move or experience a force depending on their charge polarity.