Complex sentence: She may have been a rival of Kösem, who made efforts to keep Mustafa safe from execution, and saw an obstacle in Mahfiruz.
Split into simpler sentences: She may have been a rival of Kösem. Kösem made efforts to keep Mustafa safe from execution, and saw the obstacle in Mahfiruz.