 Frederick was forced to return home in 1229, leaving the Holy Land "not in triumph, but showered with offal" by the citizens of Acre.Nevertheless, Frederick sent an Imperial army in 1231, under Richard Filangieri, who occupied Beirut and Tyre, but was unable to gain control of Acre.John's supporters formed a commune in Acre, of which John himself was elected mayor in 1232.