A coast guard or coastguard is a maritime security organization of a particular country. The term embraces wide range of 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 without law enforcement authority. In most countries, a typical coast guard's functions are distinct from those of the navy (a military service) and the transit police (a law enforcement agency), while in certain countries they have similarities to both.