Coast guard
It is tasked with the broader enforcement of maritime laws, especially against smuggling, illegal fishing, drug trafficking, and piracy. It patrols the country's 36,289-kilometer coastline and hundreds of islands, and is also involved in maritime search and rescue (SAR) missions, as well as the protection of the marine environment. The Philippine Coast Guard also serves as an attached service of the Armed Forces of the Philippines in wartime.

Poland: In Poland, the law enforcement coast guard role is performed by the Maritime Branch of the Polish Border Guard (Morski Oddział Straży Granicznej). It is part of the Polish Border Guard. Search and Rescue (SAR) role of coast guard is performed by Maritime Search and Rescue Service (Morska Służba Poszukiwania i Ratownictwa). 
Recently, government published plans to integrate Maritime SAR Service within Maritime Authorities (the two remaining local offices: Maritime Office in Gdynia and Maritime Office in Szczecin), as supposedly efficiency and cost improving measures (already disbanded Maritime Office in Slupsk and split operational area between remaining two Offices). Operational structure (SAR assets, etc.) shall remain mostly unchanged, moving only administrative duties to Maritime Authorities' two local offices.

Portugal: In Portugal, the coast guard role is performed by several government agencies that, together, form the Maritime Authority System (Sistema de Autoridade Marítima or SAM). The SAM includes the Portuguese Navy, the National Republican Guard (GNR), the Portuguese Air Force, the Border and Immigration Service (SEF), the Civil Protection Authority, the National Medical Emergency Institute and the Criminal Investigation Police (PJ).
The National Maritime Authority (Autoridade Marítima Nacional or AMN) is the branch of the Portuguese Navy responsible for its coast guard role. The function of AMN is performed by the Chief of Staff of the Navy himself, supported in this role by the Directorate of the Maritime Authority, which includes the Maritime Police, the Lifeguard Institute, the Lighthouse Department and the several harbourmasters. Besides the specific assets of the Directorate of Maritime Authority entirely dedicated to the coast guard role, the AMN also has at its disposal the other Portuguese Navy's assets that can be used both for military and public service missions.
The vessels operated within the SAM include the Maritime Police patrol boats, the Lifeguard Institute lifeboats, the harbourmasters harbour boats, the GNR Coastal Control Unit' surveillance boats and the Portuguese Navy's naval ships. The aircraft operated within the SAM include fixed-wing aircraft from the Portuguese Air Force and helicopters from the Navy, the Air Force and the Civil Protection Authority.

Russia: Russia's Coast Guard (Береговая охрана России) operates under the auspices of the Border Guard Service of Russia (itself a branch of the FSB Federal Security Service). Its remit encompasses the twelve-mile limit of all Russian territorial and coastal waters and, being equipped with frigates, corvettes, fast patrol boats, hydrofoils, helicopters, and light aircraft, it has considerable combat capability on behalf of the continent-wide border guard of the Russian Federation.
For inland waters operations Russia has the National Guard Naval Service Corps, established in 1978, while inland waters SAR operations are also under the purview of the Ministry of Emergency Situations.

Singapore: In Singapore, the Police Coast Guard (PCG) is an operational department of the Singapore Police Force. Functions of the coast guard were transferred from the Republic of Singapore Navy to what was then the Marine Police in February 1993. The Marine Police was thus restructured and renamed as the Police Coast Guard, one of the few law enforcement organizations in the world to combine water policing and coast guard duties while remaining as a policing unit. It operates primarily as a law enforcement agency, with secondary responsibilities in search and rescue.

South Africa: South Africa does not have a dedicated coast guard service in its military; the South African Navy handles coast guard-like duties. In 2017 it was reported that South Africa was looking into establishing a coast guard.

Spain: The Kingdom of Spain operates several coast guard agencies.
The Sociedad de Salvamento y Seguridad Marítima, also known as Salvamento Marítimo, or by its acronym SASEMAR, is the body in charge of maritime traffic control, safety and rescue operations, as well as protection of the maritime environment, but lacks any law enforcement responsibilities. The agency runs 20 rescue coordination centres (RCC), employs a staff of 1500 and operates a fleet of 19 vessels, 54 boats, 11 helicopters and 3 airplanes.
Border protection functions in the Kingdom of Spain are carried out by the Civil Guard (Servicio Marítimo de la Guardia Civil), with a staff of 1100 and a fleet of 67 patrol vessels and speedboats. Maritime customs functions are the responsibility of the Servicio de Vigilancia Aduanera with 13 aircraft and a surface fleet of 2 high seas cutters; 18 high speed patrol vessels; and 21 medium-sized and smaller patrol vessels.
Salvamento Marítimo operates in the four international SAR areas assigned to Spain: Atlántico, Canarias, Estrecho and Mediterráneo, covering a combined extension of 1.5 million square kilometers. During a maritime emergency, Salvamento Marítimo is responsible for the coordination of other possible responders, like the Spanish Navy or the Servicio Aéreo de Rescate, that comprises squadrons 801, 802 and 803 of the Spanish Air Force. Coordination on land, sea and air are made with the North Atlantic Treaty Organization (NATO), and cooperative European Union

Galicia: The autonomous community of Galicia has its own separate coast guard service, the Servizo de Gardacostas de Galicia or simply Gardacostas de Galicia. It is the Galician Government agency responsible for coastal and fisheries surveillance; maritime search and rescue; and protection of the sea environment. The Gardacostas de Galicia operates a fleet of more than 20 vessels and two helicopters, from the bases of Viveiro, Ferrol, A Coruña, Muxía, Porto do Son, Ribeira, Vilagarcía de Arousa, Pontevedra and Vigo.
The Gardacostas de Galicia was created in 2004, by the amalgamation of the former Servizo de Vixilancia Pesqueira (Galician Fisheries Surveillance Service) and the Servizo de Busca e Salvamento (Galician Search and Rescue Service).

Sri Lanka: In Sri Lanka, until 2009 a Coast Guard Unit existed under the Ministry of Fisheries and Aquatic Resources, responsible for fishery and natural resource protection coastal areas. A new Department of Coast Guard was created under the Department of Coast Guard Bill presented to parliament in 2009. The department would be under the purview of the Ministry of Defense and be staffed by civilian personnel. The department's responsibilities include search and rescue, law enforcement within the country's Exclusive economic zone, conducting anti-smuggling and anti-immigration operations, suppression of terrorist activities in territorial waters of Sri Lanka.

Sweden: The Swedish Coast Guard (Swedish: Kustbevakningen) is a Swedish civilian government agency with combination of police tasks, border control, maritime rescue and environmental control. Coast Guard officers carries the same equipment to regular Swedish police officers. 
Tasks:

maritime surveillance and other control and inspection tasks as well as environmental cleanup after oil spills at sea
co-ordinate the civilian needs for maritime surveillance and maritime information
follow international development within the field and take part in international efforts to establish border controls, law enforcement at sea, environmental protection at sea and other maritime surveillance tasks.
The Swedish Coast Guard carries out some of its surveillance by air (from its base in Skavsta near Stockholm), and some on ice and snow (from its Luleå station). It also has marine duties on Lake Vänern, Europe's third largest lake, operating out of Vänersborg.

Taiwan: The Coast Guard Administration is both a military and a law enforcement organization. The CGA is considered a civilian law enforcement agency under the administration of the Executive Yuan, though during wartime it may be incorporated as part of the ROC military. Its primary roles are ensuring the safety and security of territorial waters and coordinating search and rescue efforts.
The CGA includes a Maritime Patrol Directorate General and a Coast Patrol Directorate General. Officers of the Maritime Patrol Directorate General are law enforcement officials, but officers of the Coast Patrol Directorate General are considered soldiers who have partial law-enforcement power.

Trinidad and Tobago: The Trinidad and Tobago Coast Guard (TTCG) is the maritime division of the Trinidad and Tobago Defence Force. It is within the government portfolio of the Ministry of National Security. The Commanding Officer of the Coast Guard reports to the Chief of Defence Staff. The TTCG is responsible surveillance, search and rescue, fisheries enforcement, pollution enforcement, and counter-narcotics operations for maritime jurisdiction of Trinidad and Tobago.

Turkey: The Turkish Coast Guard of the Republic of Turkey (Turkish: Sahil Güvenlik Komutanlığı) is a branch of the Turkish Armed Forces and was initially founded in 1859. During peacetime, it is under the command of the Ministry of Interior. However, during war or emergency time, it falls under the command of the Turkish Navy. On July 13, 1982, it was assigned to the Turkish Gendarmerie becoming both a military and a law enforcement service. Finally, the organization obtained its current form on January 1, 1985.