DHCP is a client-server protocol that automatically provides an host with an IP address and other related configuration information (e.g. subnet mask, default gateway, DNS server)
When a host is connected to a network, the "DHCP client" service in the host makes a request (known as "DHCP Discovery") with the DHCP server in the network for the network configuration information (IP address, subnet mask, …etc)