Separating the Middle and Upper Wards of Edinburgh Castle is Foog's Gate. One of two ways to reach the Upper Ward and the Half-Moon Battery, Foog's Gate is flanked by one of the castle's reservoir buildings on the left. As maintaining a good water supply was critical during sieges, the castle possessed two large reservoirs to supplement its wells.