Fix coherence of the sentence: Allying themselves with Shams, they besieged Ray and eventually imprisoned Majd in the hilltop fortress of Tabarak, adjoining the city.
They allied themselves with Shams. They besieged Ray and eventually imprisoned Majd in the hilltop fortress of Tabarak, adjoining the city.