A modem and router work in tandem to deliver you an internet connection and then grant access to your various devices.
If your Mac won't connect to the internet, troubleshoot the problem with 8 tips and get back to uninterrupted browsing.