Shahjahan 's son was Aurangzeb ( 1658 1707 ) , who overthrew his father and imprisoned him in the Agra fort for the last years of his life .
Aurangzeb imprisoned people he thought would inhibit his path to ruling .