Then he encamped against Joppa. The people of the city shut him out, because Apollonius had a garrison in Joppa.