The First Kingdom of Jerusalem lasted from 1099 to 1187 before being almost entirely overrun by Saladin. Following the Third Crusade, the kingdom was re-established in Acre in 1192, and lasted until the city's destruction in 1291. This second kingdom is sometimes called the Second Kingdom of Jerusalem or the Kingdom of Acre, after its new capital. Acre remained the capital, except for the two decades which followed Frederick II of Hohenstaufen regaining the city of Jerusalem from the Ayyubids in the Sixth Crusade through diplomacy.