How about the classic illegitimate child? Maybe he/she is the best man/woman for the job despite being a bastard. Maybe a few of the priests can't accept them because they were born outside the 'sacred bonds of marriage'. And maybe this kingdom had conquered some of the other lands/races around them in the past and now they see their chance to revolt while the kingdom tears itself apart.