Imported from the Apple Support Forums via the Wayback Machine 🔗
Apple offers the ability to backup iPhones and other iOS devices to iCloud but there is no iCloud Backup service for Macs.
It is possible to sync some data from Macs to iCloud (via iCloud Photos, iCloud Drive, and other options listed in Apple menu > System Preferences > iCloud such as Contacts and Notes). Synced data is synced automatically as changes are saved on the Mac or other devices.