He camped in front of Joppa. But the people of the city closed its gates because Apollonius had a defense force there. So they fought against it.