He built a strong base in Cyprus before heading to Egypt but he was forced to leave due to a conflict with John of Alban, so he began sailing to Jerusalem.
He realized that his army was getting smaller and smaller, so he decided to capture Jerusalem with his diplomats by approaching Sultan of Egypt, Al-Kamil.
Al Kamil surrendered Jerusalem, Nazareth and other Christian lands in an exchange for a ten years jews.
Frederick II became the King of Jerusalem
Many people saw him as a hero, and Pope Gregory the ninth lifted up his excommunication.
Frederick the II won the sixth crusade and the crusade continued to the seventh