Napoleon - in 1809 - issued a decree that annexed Macerata as part of the French Empire. The French ordered that this decree be read in all churches but Strambi refused to do so. He also refused to provide the French with a list of all the men in his diocese who would be suitable for service in the armed forces. The French arrested him in September 1808 for refusing to take the oath of allegiance to the French invaders and was then exiled and cut off from his diocese. He was first sent to Novara but was sent in October 1809 to Milan where he spent the remainder of his exile as a guest of the Barnabites. He returned to his see in 1814 with vast crowds lining the route of his return. Pius VII had returned from his own exile and remarked:"This holy man overwhelms me".The invaders had left much damage in their wake - not just destruction to infrastructure - but a lax sense of morals and values which Strambi worked hard to rebuild. He instituted strict reforms that ended corruption to the point where he received some death threats. Strambi was also the spiritual director of Blessed Anna Maria Taigi - a friend - as well as Saint Gaspare del Bufalo and Saint Vincenzo Pallotti.