Hide or show the Dock
Press Option Command D anywhere. The Dock hides, and comes back when you move the pointer to its edge. Press the same keys again to keep it on screen.
The same switch is in System Settings › Desktop & Dock › Automatically hide and show the Dock, or right-click the line between your apps and the Trash and choose Turn Hiding On.
Make the hidden Dock appear faster
A hidden Dock waits a moment before it appears. To remove the wait, run this in Terminal:
defaults write com.apple.dock autohide-delay -float 0 && killall Dock
To put it back:
defaults delete com.apple.dock autohide-delay && killall Dock
The Dock is missing
Work down this list. Most of the time it's one of the first three.
- It's hidden. Press Option Command D, or move the pointer to the bottom, left and right edges.
- An app is full screen. The Dock hides in full screen. Push the pointer against the edge and wait a moment, or leave full screen with Control Command F.
- It's on another display. Push the pointer against the bottom edge of each display. See moving the Dock between displays.
- It appears very slowly, or not at all. A Terminal tweak may have set a long delay. Run
defaults delete com.apple.dock autohide-delay && killall Dock. - It's stuck or frozen. Run
killall Dockin Terminal. The Dock restarts in a second and your windows stay put. - A Dock replacement is running. Apps like Pier, uBar or DockDoor Pro hide Apple's Dock while they run. Quit the app and Apple's Dock comes back.
- Still gone? Reset the Dock to Apple's defaults with
defaults delete com.apple.dock && killall Dock. This also removes apps you added, so it's the last thing to try.
Hide it only when you need the room
Apple's auto-hide is all or nothing: the Dock is either always there or always hidden. Pier's smart auto-hide keeps the Dock in view until a window actually needs the space, then slips it away, so you get the room without hunting for the Dock.
More Dock settings and Terminal tweaks are in the guide to customizing the Mac Dock.