From your Mac's Launchpad, open up your System Preferences.
Find your "Dock & Menu Bar" icon near the top of System Preferences and select it.
When you check "Automatically hide and show the Dock", your dock will now auto-hide by default. If you move your mouse to your dock's location, however, it will appear.
Auto-hide Menu Bar on Mac
You can check the "Automatically hide and show Menu Bar" selection to auto-hide the menu bar in macOS Big Sur or later.
Something else that's cool you can do is add spacers to your dock!
If you found this guide useful and are looking for ways to quickly declutter your screen, check out our guide on how to close all Finder windows at once.