to make something ~
Marks the object that results from a change, meaning 'to make something ~'.
This pattern expresses making something into a certain state or thing. It is transitive: someone acts on an object to change it. For example, when you turn a room into a study, you say 部屋を書斎にする. The thing being changed is marked with を, and the result is marked with に. This is a very productive pattern in everyday speech.
Note: にする also means 'to decide on' when you choose one option among many, as in コーヒーにする ('I'll have coffee'). That meaning is different and will be covered elsewhere. Here, we focus on the change-of-state meaning, where you actively make something different.
With nouns, attach に directly. With な-adjectives, use the stem: きれいにする. With い-adjectives, the pattern is less straightforward; you often use くする (e.g., 安くする), but that is a separate pattern. At N4, you will most often see にする with nouns and な-adjectives.