If you sign out of iCloud
If you sign out of iCloud in iCloud preferences, your documents and data stored in iCloud are removed from your Mac. Your bookmarks and Reading List remain in Safari, but the iCloud Tabs list of webpages open on your other devices is no longer available.
You’re asked whether you want to keep copies on your Mac of documents stored in iCloud Drive and data stored in iCloud by Contacts, Calendar, and Reminders. If you keep copies, iCloud doesn’t keep them up to date with changes on your other devices.
You’re also asked whether you want to download or remove photos and videos that aren’t fully downloaded from iCloud Photo Library to your Mac. After you sign out of iCloud in iCloud preferences, downloaded Photos and videos aren’t kept up to date with changes on your other devices. If you have photos in My Photo Stream that aren’t imported to your Mac, they no longer appear on your Mac.
Copy iCloud documents and data before signing out
Before signing out of iCloud, you can selectively copy or archive iCloud documents and data to your Mac.
iCloud Drive: For instructions on copying documents to your Mac, see Store your desktop and documents in iCloud Drive.
Mail: For instructions, see Move or copy messages.
Contacts: For instructions, see Export and archive contacts.
Calendar: For instructions, see Import or export calendars.
Reminders: For instructions, see Export and import reminders.
Documents and data you copy to your Mac aren’t kept up to date with changes on your other devices.
After signing out of iCloud on your Mac, you can still access your iCloud documents, data, photos, and videos on your other devices set up for iCloud and on iCloud.com.
If you sign in to iCloud again on your Mac, your iCloud documents and data reappear on your Mac. Photos and videos you haven’t yet downloaded from iCloud Photo Library also appear on your Mac.