There was a second period when taifas developed . That was about the middle of the 12th century , when the Almoravid rulers were in decline . There was a second period when taifas arose , toward the middle of the 12th century , when the Almoravid rulers were in decline .