Complex sentence: The church was modified in the 18th and 19th centuries, and, from 1808, it served the seat of the city's lottery, then as a tribunal and then as a tobacco factory.
Split into simpler sentences: The church was modified in the 18th and 19th centuries. From 1808, it was the seat of the city's lottery, then a tribunal, and then a tobacco factory.