Complex sentence: Because of a difficult season, Villarreal were relegated to the Segunda División for the 1999--2000 season, but by finishing third, they were then promoted back to the Primera Liga.
Split into simpler sentences: Because of a difficult season, Villarreal were relegated to the Segunda División for the 1999--00 season. By finishing third, they were then promoted back to the Primera Liga.