Complex sentence: After the Forty Thieves leave, Ali Baba uses the password to enter the cave and steals as much gold his camel can carry.
Split into simpler sentences: After the Forty Thieves leave, Ali Baba uses the password to enter the cave. He steals as much gold his camel can carry.