the country where a ship is officially registered and recorded in a maritime registry. This registration grants the vessel a legal identity and determines the laws and regulations that govern its operations, including safety standards, taxation, and liability.