Quick answer
Delete the steamui folder inside your Steam installation directory (default: C:\Program Files (x86)\Steam\steamui), then restart Steam. It'll download a fresh copy automatically.
Why this happens
The steamui.dll file is the main UI engine for Steam. When it fails to load, Steam can't draw its window — you'll get a black screen or the error box. I've seen this happen after a failed update, after Windows crashes while Steam is running, or when antivirus software quarantines the file. One weird case: a user had set their Steam folder to read-only, which locked the DLL during an update. The real fix is to clear the corrupted files and let Steam rebuild them.
Step-by-step fix
- Close Steam completely — right-click the Steam icon in your system tray (near the clock) and choose Exit. If you don't see it there, open Task Manager (Ctrl+Shift+Esc), find any Steam or Steam Client Bootstrapper processes, and end them.
- Navigate to your Steam folder. The default location is
C:\Program Files (x86)\Steam. If you installed Steam elsewhere (likeD:\Steam), go there instead. - Delete the
steamuifolder. Inside your Steam folder, you'll see a folder namedsteamui. Select it and press Delete. Windows might ask for permission — click Yes. After you delete it, the folder should be gone. If you get a "folder in use" error, you missed a Steam process in Task Manager. Check again. - Delete the
packagefolder (optional but recommended). Inside the Steam folder, also delete thepackagefolder. This forces Steam to re-download all UI-related packages. I've had cases where only deleting both fixed the issue. - Restart Steam. Double-click the Steam shortcut. You'll see a message saying "Updating Steam" or it may just open normally. Either way, it's re-downloading the
steamui.dlland related files. After a few seconds, Steam should appear. After restarting, you should see your login screen or library — not the error.
Alternative fixes if the main one fails
- Run Steam as administrator. Right-click the Steam shortcut, choose Run as administrator. This bypasses permission issues that can block file writes. If this works, set it permanently: right-click the shortcut → Properties → Compatibility → check Run this program as an administrator.
- Clear Steam's download cache. Go to the Steam folder, delete everything except the
steamappsfolder and theSteam.exefile. Then runSteam.exe. It will rebuild its files. I know this sounds drastic, but it's safe — your games stay insteamapps. - Check your antivirus. Temporarily disable your antivirus (Windows Defender included), then try starting Steam. If it works, add an exception for the entire Steam folder. I've seen McAfee and Norton flag
steamui.dllas a false positive after an update. - Repair the Steam installation. Go to Control Panel → Programs and Features, find Steam, select it, and choose Repair (if available). On Windows 10/11, you can also go to Settings → Apps → Steam → Advanced options → Repair. This re-registers the DLL without nuking your games.
Prevention tips
- Don't force-close Steam. Always exit through the system tray menu. Killing Steam mid-update corrupts files.
- Keep your Steam folder writable. Right-click the Steam folder → Properties → uncheck Read-only if it's checked. Apply to all subfolders.
- Update Windows. Some DLL errors come from missing Visual C++ redistributables. Run Windows Update and install all optional updates under Driver & Optional Updates.
- Run a disk check. Open Command Prompt as admin and run
chkdsk /f c:. This catches bad sectors that can corrupt files Steam is writing to.