drawbridge

noun

A bridge, especially one over a castle's moat, which is hinged at one end so that it may be raised to prevent people crossing or to allow vessels to pass under it.