 Taking advantage of the Napoleonic invasion of the Papal States, he attempted what came to be known as ""Urquijo's Schism"" (1799), in which he tried to recover for the Spanish church powers that had previously been assumed by the Pope, including matrimonial dispensations.Even though he was supported by some jansenist-leaning clerics such as the bishop of Salamanca, Antonio Tavira, his religious policies caused his fall.Godoy, the queen's favourite, had resented Urquijo as a rising star whose influence in court had started to eclipse his own.