A border guard of a country is a national security agency that ensures border security. Some of the national border guard agencies also perform coast guard (as in Germany, Italy or Ukraine) and rescue service duties.