In the Lagrangian approach, the transport processes in the ocean and atmosphere are studied by tracking water or air parcels, each of which may carry different tracers. In the ocean, they are salt, nutrients, heat, and particulate matter, such as plankters, oil, radionuclides, and microplastics. In the atmosphere, the tracers are water vapor, ozone, and various chemicals. The observation and simulation reveal highly complex patterns of advection of tracers in turbulent-like geophysical flows. Transport barriers are material surfaces across which the transport is minimal. They can be classified into elliptic, parabolic, and hyperbolic barriers. Different diagnostics in detecting transport barriers and the analysis of their role in the dynamics of oceanic and atmospheric flows are reviewed. We discuss the mathematical tools, borrowed from dynamical systems theory, for detecting transport barriers in simple kinematic and dynamic models of vortical and jet-like flows. We show how the ideas and methods, developed for simple model flows, can be successfully applied for studying the role of barriers in oceanic and atmospheric flows. Special attention is placed on the significance of transport barriers in important practical issues: anthropogenic and natural pollution, advection of plankton, cross-shelf exchange, and propagation of upwelling fronts in coastal zones.