How is an electric field produced?

The presence of either a positive or negative electric charge produces an electric field.