And you can turn it off by swiping up from the bottom of the screen to get the Control Center. Tap the crescent moon in the panel to toggle it on or off.
You can also set it to turn on and off automatically. Go to Do Not Disturb settings and you can set the Scheduled tab to have it automatically turn off at a certain time.