keep photos on iphone but not on icloud

Maybe this isn’t the right place to ask this question. If not direct me. How can I keep photos on my iphone but not in icloud? Most often the question is asked in reverse. I’m not interested in icloud for the most part and would like to free up space but still have pics on my phone. Do I need 3rd party software to do this? I’m not sure why apple makes it so hard to do stuff.
Thanks!