HMS Liverpool sailed into Portsmouth Naval Base, Hampshire, having travelled more than 921,700 nautical miles during its service.