You can use macOS Recovery, your computer's built-in recovery system, to reinstall the Mac operating system. Reinstalling macOS doesn't remove your personal data.