Complex sentence: It was created as a partition of Castell and in 1806, it was mediatised to Bavaria.
Split into simpler sentences: It was created as a partition of Castell. In 1806, it was mediatised to Bavaria.