In Medieval II: Total War, if the Pope is causing you trouble — excommunicating you or stirring up rebellion — one direct solution is to have him assassinated.
Send a well-trained assassin after the Pope, and with a bit of luck the attempt succeeds, removing that particular thorn from your side. Keep in mind a new Pope may be elected afterward, so it buys you relief rather than a permanent fix.