Gosport ( ) is a town and non-metropolitan borough on the south coast of Hampshire, South East England. At the 2011 Census, its population was 91,544. Gosport is situated on a peninsula on the western side of Portsmouth Harbour, opposite the city of Portsmouth, to which it is linked by the Gosport Ferry. Gosport lies south-east of Fareham, to which it is linked by a Bus Rapid Transit route and the A32. Until the last quarter of the 20th century, Gosport was a major naval town associated with the defence and supply infrastructure of Her Majesty's Naval Base (HMNB) Portsmouth. As such over the years extensive fortifications were created.