In the streets , she finds out that Aladdin is arrested for stealing . Later , Jafar takes the control of the city of Agrabah , reducing Jasmine to the position of a slave . However , upon announcing her decision to marry Aladdin , Jafar takes over Agrabah by stealing the lamp from Aladdin .