This article explains how to turn off iCloud on your iPhone. The instructions apply to all iOS devices.
These instructions apply to devices running iOS 10.3 or later:
Tap the Settings app to open it.
Tap your name at the top of the Settings screen.