He also seems to have aided Sozin in attacking the Earth Kingdom because he is often shown blocking or dispersing Earthbending attacks and attacking Earthbenders.
It seems that he aided Sozin by blocking or dispersing Earthbending attacks and attacking Earthbenders, as he is often seen doing so.