The history of the coast guard dates back to the early 18th century, with the founding of the Revenue-Marine service in 1790 in the United States. Initially focused on customs enforcement and preventing smuggling, it evolved into a vital agency for maritime safety, search and rescue, and national defense, reflecting the changing needs of society.