It is like Rangers Apprentice by John Flanagan. A young boy, Keli Malket, is found by strangers as the Dhriebans attack his hometown. When they fight them off and rebuild he joins a royal family and is considered very highly respectable. He never fits in though.