How had captured the city of Jerusalem in 1076?

It was not in 1076; the Seljuk Turks had captured Jerusalem in August 1070 during a dispute between Fatimid and Seljuk forces.
Copyright Wanderlust World © https://www.ynyoo.com