A coast guard or coastguard is a maritime security organization of a particular country. The term implies widely different responsibilities in different countries, from being a heavily armed military force with customs and security duties to being a volunteer organization tasked with search and rescue functions and lacking any law enforcement powers. However, a typical coast guard's functions distinct from typical functions of both the navy (a pure military force) and a transportation police (a civilian law enforcement agency). Among the responsibilities that may be entrusted to a coast guard service are: During wartime, some coast guard organizations might have responsibilities in harbor defense, port security, naval counter-intelligence and coastal patrols. The coast guard may, varying by jurisdiction, be part of the country's military, a law enforcement agency, or a search and rescue body. For example, the U.S.