Titus states that God saved "not because of works done by us in righteousness, but according to his own mercy." He then connects salvation with the Holy Spirit’s renewing work. See Titus 3:5–7.
In Titus 3:3–7 the writer contrasts “what we were” with “what God did.” He begins by reminding believers that they once shared the same tangled, self-ruining patterns found in wider society. Then he shifts to God’s initiative: God’s kindness and love showed up in history, and the rescue was not earned by their right actions. This paragraph sits inside a practical section urging believers to live in a way that fits their public setting: cooperate with authorities, be peaceable, and avoid needless conflict (3:1–2). The reminder “we were once like that” supplies the emotional and moral logic for patience toward outsiders.
Titus 3:3–7 sets up a strong contrast between “what we were” (verse 3) and “what God did” (verses 4–7). The earlier life is described as confused thinking, refusal to listen, being misled, and being controlled by desires, with relational damage following (malice, envy, mutual hatred).
A careful answer keeps the immediate passage, the book's argument, and the whole-Bible storyline together, so the question is answered in context instead of as a detached idea.
Start with Titus 3:5-7, then read the surrounding section so the answer stays connected to the passage's flow.
5not by works of righteousness, which we did ourselves, but according to his mercy, he saved us, through the washing of regeneration and renewing by the Holy Spirit,
6which he poured out on us richly, through Jesus Christ, our Savior;
7that, being justified by his grace, we might be made heirs according to the hope of eternal life.