A siege threatening Tripoli was repelled.