A computer network connects two or more computers together to share resources. It allows computers to exchange information and cooperate. There are three major types of computer networks: local area networks (LANs) which connect devices in a single physical location like a home or office; wide area networks (WANs) which connect LANs and devices over a larger area through providers; and metropolitan area networks (MANs) which interconnect LANs in a city or region larger than a LAN but smaller than a WAN.