the city gates
The gates were the only normal way into or out of the walled cities.
lowered him over the city wall in a basket
Another way to say this would be, “helped him get into a large basket and lowered the basket with him in it over the city wall.”