What trick did the Cid play on the Jews? Why did the Infantes of Carreon marry the Cid’s daughters?

What trick did the Cid play on the Jews? Why did the Infantes of Carreon marry the Cid’s daughters? Why did the two Infantes treat the Cid’s daughter so badly?