Guru Arjan was executed by orders of fourth Mughal Emperor Jahangir, who ruled from 1605 to 1627. He was charged with treason because he had given shelter to Prince Khusrau at Tarn Taran, who had rebelled against his father Jahangir for the Mughal throne. Khusrau was captured, confined and subsequently killed by Shah Jahan (fifth Mughal emperor) in 1622.
Guru Arjan was at first fined by the Imperial Mughal power, but as he refused to pay the fine he was sentenced to death.