Input (grade 10): There was a second period when taifas arose, toward the middle of the 12th century, when the Almoravid rulers were in decline.
Output (grade 6): There was a second period when taifas developed. That was about the middle of the 12th century, when the Almoravid rulers were in decline.