Rohtasgarh Fort has a rich history and has been controlled by various dynasties and empires over the centuries, including the Suri dynasty, the Mughals, and the British colonial powers. It is associated with legends and historical figures such as Sher Shah Suri, who is said to have commissioned the construction of the fort during his reign to fortify his position against the Mughal Empire.