を保つために

in order to maintain

→ を
phrase Rare #30,475
in order to maintain Used after a noun to express the purpose of maintaining or preserving it. を保つ means “to maintain” or “to keep.”
JA: 健康を保つために、毎日歩いています。
EN: I walk every day in order to maintain my health.

正気を保つために

To keep my sanity.

— ザ・マン・フロム・アース (2007)

国連地球の平和を保つために努力しています

The United Nations is working to maintain peace on Earth.

健康を保つためによく寝ることが必要であると思う

I think getting enough sleep is necessary to stay healthy.

私たちは世界平和を保つためにあらゆる努力をすべきだ

We should make every effort to maintain world peace.

体調を保つために何をしていますか

What do you do to stay healthy?