Original: In 1801 the clerical states were dissolved, and Prussia gained the region, only to lose it again in the Napoleonic Wars.
Simplified: In 1801 the clerical states were dissolved, and Prussia took over.