To Resist
する verb
Resist and confront those who oppose you. This is to resist.
This is a jukugo word that uses the on'yomi readings of the kanji. You should be able to read this on your own.
どうしてあのケーキを食べるのを抵抗したんだ?
Why did you resist eating the cake?