A computer network is a set of interconnected computers and other devices that communicate with each other and share resources.