Ourselves is always one word, and it can play two roles in sentences.
As a reflexive pronoun, “ourselves” can be a direct object, an indirect object, or an object of a preposition when the subject is “we” or another noun with “I” (e.g., “We should buy ourselves a new sofa”).
As an intensive pronoun, “ourselves” emphasizes a plural, first-person pronoun or noun (e.g., “We will save money if we paint the bedroom ourselves”).
A QuillBot Grammar Check can help you use “ourselves” and other reflexive or intensive pronouns correctly in your writing.