A router acts as the hub of a local network. The WAN (wide area network) connection from the router provides the upstream connection from your local network to the internet.
Usually, a router is required to allow multiple devices to share a single internet connection.