The function of the ports authority is to ensure the efficient operation of ports and harbors. This includes managing the maintenance and development of port facilities, regulating shipping traffic, and providing essential services to vessels and cargo. The ports authority is responsible for promoting safety and security in the harbor, collecting port fees and charges, and ensuring compliance with relevant laws and regulations. They may also provide additional services such as warehousing and cargo handling, as well as monitoring and reporting on port activities to relevant authorities. While they may play a role in enforcing law and order in the harbor, this is typically the responsibility of local law enforcement agencies.